emacs-devel
[Top][All Lists]
Advanced

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

Re: random doesn't feel very random


From: Richard Stallman
Subject: Re: random doesn't feel very random
Date: Fri, 24 Aug 2012 18:48:10 -0400

    That is probably because we have only one global random state and many
    packages reset it from time to time (see message-unique-id).

Why would extra invocations of (random t) cause repetitive behavior?

    Ideally we should call (random t) only once or allow multiple random
    states.

Supporting multiple random seeds would be a natural thing to do
if there is some advantage in sticking with one random seed
for a particular purpose, or if there is some harm in doing
(random t) extra times.  But what reason could there be for that?
Except studying the pseudorandom number generator, that is.

--
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call




reply via email to

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