| Thursday July 31st 2014

Feedburner

Subscribe by email:

We promise not to spam/sell you.


Search Amazon deals:

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...

Reader Feedback

One Response to “PHP rand() on Windows vs. true random”

  1. deckard cain says:

    GREAT ARTICLE. Showing patterns as images were a great idea. Thank you

Leave a Reply

You must be logged in to post a comment.