PHP rand() on Windows vs. true random

Random Bitmap NoiseI’ve always been into scripting things using random numbers based on random functions, like PHP’s “rand()” function… but I’ve never compared these types of functions to true random number generators. Then one day, I stumbled upon Random.org, which is a true random number generating service.

The difference is that most random number generating functions in programming languages/operating systems use a mathematical formula based on the system clock or physical memory which generate a pseudo random number. On the other hand, Random.org uses atmospheric noise to produce their random numbers, which is much more chaotic and true to “randomness”. This type of thing is well suited for holding lotteries, raffles, and drawings… even gambling games.

I wanted to see the difference, and found the random bitmap generator on Random.org! So I ran the thing, and here’s what it made…

Read more…

Related Posts: On this day...


reddit
Stumble It

Did you like this post?

Digging and sharing is a great way to say thanks!

Leave a Reply

© 2010 LandoftheFreeish. All Rights Reserved.
39 queries. 0.374 seconds. | ¯\(°_o)/¯
Word to our gui, os, http server, database, and scripting language. lamp-for-life.