[Top][All Lists]

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

Re: random doesn't feel very random

From: Eli Zaretskii
Subject: Re: random doesn't feel very random
Date: Fri, 31 Aug 2012 12:41:26 +0300

> From: Stefan Monnier <address@hidden>
> Date: Mon, 27 Aug 2012 00:48:47 -0400
> Cc: Achim Gratz <address@hidden>, address@hidden
> > It is a feature that, if you don't call (random t), `random' returns
> > a predictable sequence.  That is good for debugging.
> I wonder how often this has been useful.

??? A pseudo-random sequence is always deterministic, that's what the
"pseudo" part is about.  I'm sure you already know that.

> Since most/any package that uses `random' will want the sequence to
> be unpredictable

??? A pseudo-random sequence looks and feels as an unpredictable one.
Moreover, you cannot have a non-predictable sequence out of a PRNG at
all.  I'm sure you already know that.

> many packages call (random t) at various times

Those packages have a bug that needs to be fixed.

reply via email to

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