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

rand() function

Thread Next
From:
Robert Howard
Date:
January 7, 2002 13:35
Subject:
rand() function
Message ID:
000d01c197c2$89d87b00$a2aafea9@sarah
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About