I accidentally replicated the same random integers as my textbook on my first try.

Image from i.redditmedia.com and submitted by secondarysouls
image showing I accidentally replicated the same random integers as my textbook on my first try.

Tethys_K on September 24th, 2017 at 06:09 UTC »

This is a lot more common than you might think. It has to do with the way random number generation works on computers.

Nothing can ever be "random" on a computer (or in this case a calculator). All a number generator does is take inputs from the environment and produce an output. Those inputs can seem random, like time, temperature, noise volume. But if you put back all the same inputs into that random number function you'll always get the same output.

Since calculators area a lot less complex than desktop computers they have a much simpler random number generator function.

MLazarow on September 24th, 2017 at 07:17 UTC »

Actually, because the calculators are programmed the literal exact same way out of the factory, this will always happen. They have to be seeded, essentially started at a random place.

electrodude102 on September 24th, 2017 at 08:16 UTC »

interestingly when programming there is a function to create a random number. the random number generator requires a seed, if you forget to initialize the seed, the random function will generate the same random numbers!

edit: typo