jeremyp
Philosopher
Back when I was a college student I wrote a program that required me to simulate coin flips. I naively used the C library random number generator and took the last bit of the result as my coin flip. Turned out the C library random number generator was not very good and the numbers it produced were alternately even and odd.Pseudo-random in computer random number generators means that an algorithm generated the sequence.... and the set of data is random in its arrangement.... but because it is algorithmic then the sequence will always generate the same set of random numbers if the same starting point is used (i.e. a seed).
And therein lies the BEAUTY of pseudo-random number generators.
The fact that you can have a set of random numbers that can be repeated is vital for testing and experimenting.
But... if the SEED... i.e. the atarting off point for the algorithm is changed then a totally different set of numbers is generated that is RANDOMLY different than the previous set.
Which is yet another very useful quality of pseudo-number generators.... in that you can now have two sets of random number randomly different from each other but can be repeated because you know the starting off SEED and of course the algorithm
However... if you do not know the SEED and you use a different seed all the time that you have no way of knowing or determining then the total set of random numbers is not pseudo-random anymore despite it being still algorithmic.
Of course all this is because we are using a computer and we want to SIMULATE things like REAL LIFE randomness.
Moreover... if the SEED is random then the whole process is random....
So despite the limitation of using a computer you can still have a TRUE random number generator by having a NATURAL SOURCE of randomness from REALITY... e.g. TIME for the easiest way to do it on a computer... but more fancy equipment can use radio signal noise or even the noise in the computer's own circuitry or for really fancy stuff using background microwave noise or radiation sources etc.
For the system I am using the SEED is randomized by using microsecs ticks of the computer's clock and thus every time you run the algorithm unless you can repeat the exact same microsecond of time and can predict when the key stroke happened to start the process off... it is random.
The other way to do it... is to actually get a coin and start tossing for 10,000,000 times and recording the results and then repeating that for say 150 times... how long do you think it will take?
However... this is a simulation of reality... reality is still random... fully random and the computer simulation gives us an extremely good simulation of this... without having to spend the rest of one's life doing the experiment.
It really would be useful if you told us exactly which RNG you are using and how you choose heads and tails.
Ok... so now you are accusing me of cheating with the app....