Mercurial > hg > xemacs-beta
comparison src/fns.c @ 5302:6468cf6f0b9d
Correct argument name in docstring, #'random.
2010-11-14 Aidan Kehoe <kehoea@parhasard.net>
* fns.c (Frandom): Correct the docstring here, the name of the
argument is LIMIT, not N.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 14 Nov 2010 14:13:06 +0000 |
parents | 9f738305f80f |
children | 4c4085177ca5 |
comparison
equal
deleted
inserted
replaced
5301:ec05a30f7148 | 5302:6468cf6f0b9d |
---|---|
212 } | 212 } |
213 | 213 |
214 DEFUN ("random", Frandom, 0, 1, 0, /* | 214 DEFUN ("random", Frandom, 0, 1, 0, /* |
215 Return a pseudo-random number. | 215 Return a pseudo-random number. |
216 All fixnums are equally likely. On most systems, this is 31 bits' worth. | 216 All fixnums are equally likely. On most systems, this is 31 bits' worth. |
217 With positive integer argument N, return random number in interval [0,N). | 217 With positive integer argument LIMIT, return random number in interval [0, |
218 N can be a bignum, in which case the range of possible values is extended. | 218 LIMIT). LIMIT can be a bignum, in which case the range of possible values |
219 With argument t, set the random number seed from the current time and pid. | 219 is extended. With argument t, set the random number seed from the current |
220 time and pid. | |
220 */ | 221 */ |
221 (limit)) | 222 (limit)) |
222 { | 223 { |
223 EMACS_INT val; | 224 EMACS_INT val; |
224 unsigned long denominator; | 225 unsigned long denominator; |