random number generator
random number generator
Is it possible to upload a excel file on here? I have made a simple RNG to simulate FOBT roulette. In 200 presses only once did the same number come out twice in a row
It is actually some very high probability (about 99.5%) that the same number will come up consecutively at least once in 200 spins.
You can test it out here:
http://www.random.org/integers/
You can test it out here:
http://www.random.org/integers/
Generate a stream of random numbers then plot them as either a 2d or a 3d - to test for structures.
for 2d - plot n against n+1
for 3d plot n against n+1 against n+2
A good random number generator will show an equal distribution whereas a poor one will reveal clusters.
Oh and see if your generator will create a unique series each time it is called. Whether it called once each time the environment used to program it is used or sequentially.
An example is the basic rand function in matlab (c) will create the approx same series each time you initialize matlab (c)
for 2d - plot n against n+1
for 3d plot n against n+1 against n+2
A good random number generator will show an equal distribution whereas a poor one will reveal clusters.
Oh and see if your generator will create a unique series each time it is called. Whether it called once each time the environment used to program it is used or sequentially.
An example is the basic rand function in matlab (c) will create the approx same series each time you initialize matlab (c)
modern random functions can be seeded for a different sequence upon startup.LordOoze wrote:Generate a stream of random numbers then plot them as either a 2d or a 3d - to test for structures.
for 2d - plot n against n+1
for 3d plot n against n+1 against n+2
A good random number generator will show an equal distribution whereas a poor one will reveal clusters.
Oh and see if your generator will create a unique series each time it is called. Whether it called once each time the environment used to program it is used or sequentially.
An example is the basic rand function in matlab (c) will create the approx same series each time you initialize matlab (c)
"If only there were evil people somewhere insidiously committing evil deeds, and it were necessary only to separate them from the rest of us and destroy them. But the line dividing good and evil cuts through the heart of every human being. And who is willing to destroy a piece of his own heart?"
- Matt Vinyl
- Senior Member
- Posts: 7198
- Joined: Wed May 11, 2005 6:56 pm
- Location: Lost in the outback, Bryan
Further reading on how Excel generates random numbers: [url=http://en.wikipedia.org/wiki/Mersenne_twister]Wiki Link: Mersenne Twister Algorithm[url]
Pseudo Random Algorithm. I'd still say these sort of randomiser algorithms are more than OK for most 'random' games?
Pseudo Random Algorithm. I'd still say these sort of randomiser algorithms are more than OK for most 'random' games?
"And do you ever contradict yourself, Minister?" "Well, yes and no..."
- Matt Vinyl
- Senior Member
- Posts: 7198
- Joined: Wed May 11, 2005 6:56 pm
- Location: Lost in the outback, Bryan
probably down to a flawed implementation of MT19937 in Excel.
"If only there were evil people somewhere insidiously committing evil deeds, and it were necessary only to separate them from the rest of us and destroy them. But the line dividing good and evil cuts through the heart of every human being. And who is willing to destroy a piece of his own heart?"
- Matt Vinyl
- Senior Member
- Posts: 7198
- Joined: Wed May 11, 2005 6:56 pm
- Location: Lost in the outback, Bryan