mirror of https://github.com/mkerrisk/man-pages
Clarify wording describing range of values returned by rand().
This commit is contained in:
parent
49d3590362
commit
7155eb96b8
|
@ -35,7 +35,7 @@
|
|||
.\" with contribution from Francesco Potorti <F.Potorti@cnuce.cnr.it>
|
||||
.\" Modified 2003-11-15, aeb, added rand_r
|
||||
.\"
|
||||
.TH RAND 3 2008-03-07 "" "Linux Programmer's Manual"
|
||||
.TH RAND 3 2008-04-28 "" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
rand, rand_r, srand \- pseudo-random number generator
|
||||
.SH SYNOPSIS
|
||||
|
@ -59,8 +59,8 @@ _POSIX_C_SOURCE || _XOPEN_SOURCE
|
|||
.SH DESCRIPTION
|
||||
The
|
||||
.BR rand ()
|
||||
function returns a pseudo-random integer between 0
|
||||
and \fBRAND_MAX\fR.
|
||||
function returns a pseudo-random integer in
|
||||
the range [0,\ \fBRAND_MAX\fR].
|
||||
.PP
|
||||
The
|
||||
.BR srand ()
|
||||
|
|
Loading…
Reference in New Issue