guile-devel
[Top][All Lists]
Advanced

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

Re: random is not random


From: Thompson, David
Subject: Re: random is not random
Date: Sat, 13 Feb 2016 16:34:57 -0500

On Sat, Feb 13, 2016 at 4:30 PM, Matt Wette <address@hidden> wrote:
> Every time I execute
> $ guile -c '(simple-format #t "~S\n" (random 100))’
> I get the same result.
>
> Is this a bug?

No.  You need to initialize the random number generator with a
different seed if you want different results.  See 6.6.2.14 Random
Number Generation in the manual for details.

- Dave



reply via email to

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