Re: random is not random [never mind]

2016-02-13 Thread Matt Wette
NEVER MIND > On Feb 13, 2016, at 1:30 PM, Matt Wette wrote: > > Every time I execute > $ guile -c '(simple-format #t "~S\n" (random 100))’ > I get the same result. > > Is this a bug? > > It happens in guile-2.0.11 and guile-2.1.2. > > Matt I found this in the manual: Note that the ini

Re: random is not random

2016-02-13 Thread Thompson, David
On Sat, Feb 13, 2016 at 4:30 PM, Matt Wette 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 Ra

random is not random

2016-02-13 Thread Matt Wette
Every time I execute $ guile -c '(simple-format #t "~S\n" (random 100))’ I get the same result. Is this a bug? It happens in guile-2.0.11 and guile-2.1.2. Matt