bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: (random t) always returns the same number under HP-UX 10.20


From: Klaus Zeitler
Subject: Re: (random t) always returns the same number under HP-UX 10.20
Date: 03 Dec 2001 16:35:31 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Eli" == Eli Zaretskii <address@hidden> writes:
    Eli> 
    Eli> On Mon, 3 Dec 2001, Klaus Zeitler wrote:
    Eli> 
    >> (random t) always returns the same number when I call it
    >> right after starting emacs -q. According to the docu this call should 
set a
    >> random seed from the current time and pid.
    Eli> 
    Eli> What happens if you invoke (random t) and then (random 100000)
    Eli> repeatedly?
3 times (random t) gives always this sequence of numbers:
  46095250 -74119605 -46522877 -114711201

3 times (random 100000)
  17174 72397 82679 57274

alternating (random t) and (random 100000) 2 times gives:
  46095250 72397 -46522877 57274

can't remember when I had to start emacs this often :-)

Klaus



-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             address@hidden  |
 ------------------------------------------
---
To iterate is human, to recurse, divine.



reply via email to

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