[Ecls-list] Re: RANDOM on a positive bignum always returns zero

Paul F. Dietz dietz at dls.net
Thu Jan 13 18:33:17 UTC 2005

Juan Jose Garcia Ripoll wrote:
> Paul Dietz wrote:
>> The bug in the Subject is interfering with using
>> the gcl random tester on ecl.
> Can you elaborate a little more on this? I do not see this problem in my 
> box :-/ Is there a way I can reproduce the problems using your test suite?
> ECL (Embeddable Common-Lisp) 0.9e
> Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
> Copyright (C) 1993 Giuseppe Attardi
> Copyright (C) 2000 Juan J. Garcia-Ripoll
>    ECL is free software, and you are welcome to redistribute it
> under certain conditions; see file 'Copyright' for details.
> Type :h for Help.  Top level.
>  > (random (1+ most-positive-fixnum))
> 96696048
> Top level.
>  > (random (* 2 most-positive-fixnum))
> 392373600
> Top level.
>  > (random (expt most-positive-fixnum 2))
> 43667853069370648
> Top level.

This is different from what I'm seeing (ecl built from
cvs head, with cmuformat).  However, I notice that this
gives 0.9d, not e.

What branch should I update to if cvs head is not the most


More information about the ecl-devel mailing list