Phil for Humanity Phil for Humanity
A Guide for the Survival of Humankind and Helping the World, Society, and Yourself.



Generate Random Numbers



This is a Perl script to generate one hundred thousand (100,000) random numbers from 0 through 9 inclusively.

Most programming languages are really bad at generating random numbers. However, if we set the random number seed to a different value each time that the program is executed, then the random numbers will appear to be much more random.

You can download this Perl script here, or you can copy-n-paste from here:



This script was written for www.philforhumanity.com.

by Phil for Humanity
on 20090509

Related Articles
 » List of Randomly Generated Numbers #10
 » How Much Money Do You Need to Retire?
 » List of Randomly Generated Numbers #9