3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Where does a calculator get a random seed from?

Most, if not all, scientific and graphing calculators have a #RAND button on them, this generally generates a random number between 0 and 1 (I think).

Now, as we all (might) know, a calculator is a computer, and thus thinks in logic and cannot generate a truly random number, and, as we also (might) know, any pseudo-random number generated has to come from a seed value.

Some things take it from the time and date, others from the time between a user's input, I have even heard stories of a program asking a used to 'bash wildly on the keyboard like a monkey'. So my question is this:
Where does my calculator get its seed value from?

By the way, I cut it into paragraphs to make it more readable

7 answers
sort by: active | newest | oldest
Apr 6, 2009. 11:21 PMfrollard says:
Each calculator/cpu/software has its own method I'm pretty sure a lot of them seed with # of milliseconds since cpu turned on. # of bytes of ram used, rom used, time since last button press, even random things if they have sensors like temperature of the cpu. The sum of all the variables in the system, etc.
Apr 6, 2009. 2:48 PMNobodyInParticular says:
Since your calculator already has the ability to store several numbers in memory, I suspect that it has a special storage location for the last random number generated and that it uses this as the seed.

To test this theory, try this:
  • Take the batteries out of your calculator (including any backup battery).
  • Replace them and turn it on
  • Generate one random number without pressing any other buttons
  • Repeat the previous three steps
If the seed is stored as I suggested, you should get the same number both times.

Apr 6, 2009. 2:55 PMNobodyInParticular says:
By the way, if you are paranoid about randomness but cannot afford to buy a real random number generator for your computer, you can always borrow a cup of freshly digitized entropy from some friendly particle physicists.
Apr 6, 2009. 8:13 PMCameronSS says:
Or Random.org generates them from atmospheric noise (radio static).
Apr 6, 2009. 6:55 AMNachoMahma says:
. The numbers are not truly random. Your calculator uses a Pseudo-Random Number Generator (PRNG), usually shortened to Random Number Generator (RNG).
Apr 6, 2009. 2:41 PMNobodyInParticular says:
Yes, munchman said it was pseudo-random in the question.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!