chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Big Randoms


From: David N Murray
Subject: [Chicken-users] Big Randoms
Date: Thu, 10 Mar 2011 22:26:06 -0500 (EST)

$ csi

CHICKEN
(c)2008-2010 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.6.0
macosx-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2010-12-08 on sauron.local (Darwin)

#;1> (use srfi-27)
[snip loadings]
; loading /usr/local/lib/chicken/5/numbers.import.so ...
; loading /usr/local/lib/chicken/5/regex.import.so ...
; loading /usr/local/lib/chicken/5/srfi-27-numbers.import.so ...
; loading /usr/local/lib/chicken/5/srfi-27.so ...
[snip more loads]
; loading /usr/local/lib/chicken/5/numbers.so ...
; loading /usr/local/lib/chicken/5/srfi-27-numbers.so ...
[snip more loads]
#;2> (random-integer (expt 2 32))
Floating point exception
$

I'm working on a genetic algorithm framework and ran into this while
testing.  Is there something I'm missing, or should I be trying to
implement the dna handling in chunks of 31 bits? (random-integer (expt 2
31)) works fine.

TIA,
Dave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]