login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #365 random does not produce arbitrarily large numbers revision 1 of 2

1 2
Editor:
Time: 2007/11/17 22:33:41 GMT-8
Note: fixed in gcl 2.7.0

changed:
-
It seems that gcl 2.8.pre hits a hard limit with random.  The Hyperspec says it shouldn't...

\begin{axiom}
)lisp (random (expt 10 500))
)lisp (random (expt 10 500))
)lisp (random (expt 10 500))
\end{axiom}

From kratt6 Tue Jun 26 15:21:49 -0500 2007
From: kratt6
Date: Tue, 26 Jun 2007 15:21:49 -0500
Subject: fixed in gcl 2.7.0
Message-ID: <20070626152149-0500@wiki.axiom-developer.org>

Status: open => pending (next release) 


Submitted by : (unknown) at: 2007-11-17T22:33:41-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

It seems that gcl 2.8.pre hits a hard limit with random. The Hyperspec says it shouldn't...

axiom
)lisp (random (expt 10 500)) Value = 179769313486231590772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216 )lisp (random (expt 10 500)) Value = 179769313486231590772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216 )lisp (random (expt 10 500)) Value = 179769313486231590772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216

fixed in gcl 2.7.0 --kratt6, Tue, 26 Jun 2007 15:21:49 -0500 reply
Status: open => pending (next release)