[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: random's interval
From: |
Rupert Swarbrick |
Subject: |
Re: random's interval |
Date: |
Tue, 26 May 2009 09:54:54 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.94 (gnu/linux) |
Lennart Borgman <address@hidden> writes:
> Could the interval for the integers returned please be described with
> a less math jargong in the doc string?
How about something like the following? Those who are comfortable with
interval notation can read [a,b) an awful lot faster than any sentence
one could construct.
Rupert
Return a pseudo-random number.
All integers representable in Lisp are equally likely.
On most systems, this is 29 bits' worth.
With positive integer LIMIT, return a random number greater than or
equal to zero and strictly less than limit. That is, the result lies in
the interval [0,LIMIT).
With argument t, set the random number seed from the current time and pid.
Other values of LIMIT are ignored.
pgpmxuQqmwXkW.pgp
Description: PGP signature
- random's interval, Lennart Borgman, 2009/05/25
- Re: random's interval,
Rupert Swarbrick <=