This program is originally written for a activity in my APCS class (it is called Lucky Tuesday).
This activity is basically gambling, where you pick 5 numbers in a range of 0-20, and
the random generator program will generate random number.
I thought that I could create something more than just psuedo random, which is the reason why
this project was made.
RANDOM.ORG has something to say:
You could argue that the atmospheric noise used as a source for the RANDOM.ORG numbers can be viewed as a chaotic but deterministic system.
Hence, if you knew enough about the processes that cause atmospheric noise (e.g., thunderstorms) you could potentially predict the numbers generated by RANDOM.ORG.
However, to do this, you would probably need knowledge of the position and velocity of every single molecule in the planet's weather systems.
This is of course infeasible, and the inaccuracy of weather forecasts is a good example of how difficult it is to give even a rough estimate of the behaviour of weather systems.
For this reason, it is impractical to predict random numbers from RANDOM.ORG, even for a determinist. A similar case (on a different scale) could be made for random number generators based on lava lamps.
Regarding radioactive decay
There exists the fact that: Radioactive decay is a random process. As a result, it is impossible to predict when a particular radioactive nucleus will decay.
But half-life?
According to symmetrymagazine.org
Statistically, a cesium-137 atom has a fifty-fifty chance of decaying in 30.17 years. BUT, there is absolutely, positively no way to predict exactly when any individual atom will decay.
Odd, right? While the whole batch obeys a statistic, each atom’s decay time is totally unpredictable.
How it works?
According to symmetrymagazine.org
The Hotbits program is based on the premise that since the decaying of each atom is random, the time between decay events is also random.
Hotbits measures the time between two atoms decaying, then the time between the next two atoms decaying (a total of four events, not three, to avoid a bias the author explains ). If time one is less than time two, that gets a zero.
If time two is shorter, that gets a one. The result is a sequence of genuinely random numbers.
=> Therefore, the number ranging from 0 - 255 (8 bit)
How I convert to the range of 0-20?
Use pseudo random number with radioactive as seed.
Check out the chart