[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 <eliz@is.elta.co.il> 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: kzeitler@lucent.com |
------------------------------------------
---
To iterate is human, to recurse, divine.
Re: (random t) always returns the same number under HP-UX 10.20, Andreas Schwab, 2001/12/03