[Ecls-list] random insufficiently random

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Mon Jan 7 20:39:39 UTC 2008


On Jan 7, 2008 8:39 PM, Waldek Hebisch <hebisch at math.uni.wroc.pl> wrote:
> Trying
>
> (random (expt 10 500))
>[...]
> In multiple trials I got similar result -- most of the digits is zero.

That is because the number generator used 64-bits numbers. You were
asking for bignums, which require way more random bits. I have fixed
this in CVS.

Tag:  (CVS 2008-01-07 21:38)

--
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list