Ilya Zakharevich on Wed, 21 Jun 2000 12:08:55 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: random() weirdness


On Wed, Jun 21, 2000 at 11:35:00AM -0400, Igor Schein wrote:
> ? for(k=0,7,setrand(1+k*2^28);print(random(2^31)))
> 1559883374
> 1559883374
> 1559883374

Is it a result of using rand() instead of random() or drand48()?  One
can steal pieces from Perl's Configure to fetch a best available
random generator...

Ilya