### Author Topic: montecarlo simulator to generate numbers stream.  (Read 4436 times)

0 Members and 2 Guests are viewing this topic.

#### MrPerfect.

• Hero Member
• Posts: 1463
• Thanked: 839 times
##### montecarlo simulator to generate numbers stream.
« on: October 12, 2016, 09:57:00 AM »
Hi. I'm interested in rng.
Requirements:
1. Generation of number stream with given haracteristics.
" number stream" - list of numbers as they come up. You can often see these on roulette boards.
" haracteristics " just mean that some numbers will have more apiarences then others.
2. Posibility to manually specify how many times each number is populated in the sample.
" sample" - numbers stream generated.
If you can manage that, please say so. I do not mind to pay for your time.

The following users thanked this post: kav

#### Reyth

• Global Moderator
• Hero Member
• Posts: 4065
• Thanked: 1352 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #1 on: October 12, 2016, 12:15:14 PM »
Is this the "Monte Carlo" simulation you were speaking about earlier?

#### MrPerfect.

• Hero Member
• Posts: 1463
• Thanked: 839 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #2 on: October 12, 2016, 12:43:57 PM »
Is this the "Monte Carlo" simulation you were speaking about earlier?
yes. Need a tool able to generate samples of data stream for testing purposes....

#### MrPerfect.

• Hero Member
• Posts: 1463
• Thanked: 839 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #3 on: October 12, 2016, 12:56:21 PM »
Idea behind it... test how many sessions we would win from 100 ( 1000)with given persentage of " bias" and given " sector length " of " biased numbers". It's to develop best " triggers " to posible implementation of " sequence method" for different situations.
In short, if we can overcome results of flat betting by flat betting - super!!!
Just need to know in wich situations use of such a method is justified....
« Last Edit: October 12, 2016, 01:03:35 PM by MrPerfect. »

#### thomasleor

• Mature Member
• Posts: 283
• Thanked: 138 times
• Gender:
##### Re: montecarlo simulator to generate numbers stream.
« Reply #4 on: October 12, 2016, 01:13:14 PM »

I suggest you test NETENTs standard RNG wheel. You can find it at different Casinos.

It has the advantage, compared to most RNG that you can (in real money mode) click on quick spin and it will spit out all the numbers you want before placing a real bet.

Here is one, at one of my Casino accounts, at betvictor.com

You just register at this casino (no need for deposit) and then are free to use it as much as you want in its Real Money mode setting as long as you dont try to place a bet. Or you can choose fun mode setting (as in the image above) and place bets (which actually  is quite irrelevant when you test your ideas and an RNG in fun mode)
« Last Edit: October 12, 2016, 01:16:51 PM by thomasleor »

The following users thanked this post: Reyth, MrPerfect.

#### MrPerfect.

• Hero Member
• Posts: 1463
• Thanked: 839 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #5 on: October 12, 2016, 01:25:09 PM »

I suggest you test NETENTs standard RNG wheel. You can find it at different Casinos.

It has the advantage, compared to most RNG that you can (in real money mode) click on quick spin and it will spit out all the numbers you want before placing a real bet.

Here is one, at one of my Casino accounts, at betvictor.com

You just register at this casino (no need for deposit) and then are free to use it as much as you want in its Real Money mode setting as long as you dont try to place a bet. Or you can choose fun mode setting (as in the image above) and place bets (which actually  is quite irrelevant when you test your ideas and an RNG in fun mode)
Thank you for your sudjestion. Unfortunately l need rng that is " not random " and can be programmed for different levels of " randomness " with specific limits.

#### thomasleor

• Mature Member
• Posts: 283
• Thanked: 138 times
• Gender:
##### Re: montecarlo simulator to generate numbers stream.
« Reply #6 on: October 12, 2016, 01:35:19 PM »
You have to be specific.

If you suggest PRNGs (Pseudo Random Number Generators) be assured that you will deal with something that is not industry standard and then you have lost the point with your tetsts as what they produce will not reflect what is industry standard.   PRNGs use algorithms that use mathematical formulas, or simply precalculated tables, to produce sequences of numbers that appear random but can give you some nasty surprises.

True Number Random Generators (TRNGs), use often a physical phenomenon like a radioactive source to connect it to a computer  The points in time at which a radioactive source decays are completely unpredictable, and they can be detected and fed into a computer, avoiding any buffering mechanisms in the operating system.

The Lavarand Generator is also something worth studying https://en.wikipedia.org/wiki/Lavarand.

In the end, my advice to you is to use an industry standard RNG that applies TRNG principle. Hence you are able to implement your tests into something "real" andavailable in many casinos world wide.

But if you stillpersist to make your own custom made settings you  can always use this simple tool:    https://www.randomizer.org/
« Last Edit: October 12, 2016, 02:05:36 PM by thomasleor »

The following users thanked this post: kav, Reyth

#### MrPerfect.

• Hero Member
• Posts: 1463
• Thanked: 839 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #7 on: October 12, 2016, 02:06:44 PM »
You have to be specific.

If you suggest PRNGs (Pseudo Random Number Generators) be assured that you will deal with something that is not industry standard and then you have lost the point with your tetsts as what they produce will not reflect what is industry standard.   PRNGs use algorithms that use mathematical formulas, or simply precalculated tables, to produce sequences of numbers that appear random but can give you some nasty surprises.

True Number Random Generators (TRNGs), use often a physical phenomenon like a radioactive source to connect it to a computer  The points in time at which a radioactive source decays are completely unpredictable, and they can be detected and fed into a computer, avoiding any buffering mechanisms in the operating system.

The Lavarand Generator is also something worth studying https://en.wikipedia.org/wiki/Lavarand.

In the end, my advice to you is to use an industry standard RNG that applies TRNG principle. Hence you are able to implement your tests into something "real" andavailable in many casinos world wide.
l see, you misunderstood purpose of my need. However you are trying to help and l really appreciate it.
In simple words..  purpose of simulation is to test effectivnes of betting upproach. Test to be performed in " non random " situation...  situation where degrees of randomness are limeted.  So l need prng programmed specific way.
The easiest way to understand..  think about known hits per each number( how many times each number supposed to be selected in sample). So need only to shuffle ( mix order) of these numbers in many possible ways.

#### Reyth

• Global Moderator
• Hero Member
• Posts: 4065
• Thanked: 1352 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #8 on: October 12, 2016, 09:04:02 PM »
I have a prng that can be specifically seeded to repeat itself exactly.

The following users thanked this post: MrPerfect.

#### MrPerfect.

• Hero Member
• Posts: 1463
• Thanked: 839 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #9 on: October 12, 2016, 10:34:26 PM »
I have a prng that can be specifically seeded to repeat itself exactly.
l would like to have a look on it , if posible. My email
Kali_samuel@hotmail.com

#### Reyth

• Global Moderator
• Hero Member
• Posts: 4065
• Thanked: 1352 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #10 on: October 13, 2016, 12:29:21 AM »
No need to Email.  You can go here:

http://www.qb64.net/

a=(RND*37)

Click the mouse anywhere on the bolded (so that the blinking cursor is on the bolded) and hit F1.  The description of this command should come up.

The following users thanked this post: MrPerfect.

#### MrPerfect.

• Hero Member
• Posts: 1463
• Thanked: 839 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #11 on: October 13, 2016, 01:27:16 AM »
No need to Email.  You can go here:

http://www.qb64.net/

a=(RND*37)

Click the mouse anywhere on the bolded (so that the blinking cursor is on the bolded) and hit F1.  The description of this command should come up.
l had a look to it, including search on rnd...  looks so confusing.

#### Reyth

• Global Moderator
• Hero Member
• Posts: 4065
• Thanked: 1352 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #12 on: October 13, 2016, 01:32:20 AM »
Well if you want the same sequence of numbers you set the random SEED to a particular number every time you run your session and your random numbers will always be the same.  You will also get the same effect if you simply omit the RANDOMIZE command, the seed will be 100% sequential; duplicating the same results every time you run a session.

I can show you how to do what you want if I know what it is exactly.  You wan't a series of 100 and a series of 1000 numbers?

The following users thanked this post: MrPerfect.

#### MrPerfect.

• Hero Member
• Posts: 1463
• Thanked: 839 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #13 on: October 13, 2016, 05:25:55 AM »
Well if you want the same sequence of numbers you set the random SEED to a particular number every time you run your session and your random numbers will always be the same.  You will also get the same effect if you simply omit the RANDOMIZE command, the seed will be 100% sequential; duplicating the same results every time you run a session.

I can show you how to do what you want if I know what it is exactly.  You wan't a series of 100 and a series of 1000 numbers?
Reyth, if same numbers would be needed , l could just copy and paste them in excel.
Problem is other. Need to find way how to shuffle differently same numbers over and over ...
It's a test for how many times sector of numbers will repeat ( more then expected) , if we shuffle differently each time ( including very " rare" ways to shuffle. ..
Why its needed?  Purpose of tests is to determine worst situation posible for any known edge value that player may have in game.

#### Reyth

• Global Moderator
• Hero Member
• Posts: 4065
• Thanked: 1352 times
##### Re: montecarlo simulator to generate numbers stream.
« Reply #14 on: October 13, 2016, 05:42:35 AM »
For shuffling, we just run millions of numbers.  Things tend to stabilize after that and we end up looking at the very worst, once (or never) in a lifetime events.

The key is knowing what to track and analyzing the data properly to understand what these worst results actually mean.  I know how to do this.