develooper Front page | perl.beginners | Postings from January 2002

rand() function

Thread Next
Robert Howard
January 7, 2002 13:35
rand() function
Message ID:
Is there a statistically better solution for generating random numbers than
Perl's built in rand() function? I noticed a couple modules on CSPAN, but
are they any better? I haven't done a true test of the spread regular rand()
gives, but it seems to me to give numbers closer to the top of the range
specified more often then numbers at the bottom of the range.

R.A. Howard

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About