diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1996-03-27 20:49:07 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1996-03-27 20:49:07 +0000 |
| commit | 064f007493a990a098f3f0f5ae66732c5747c837 (patch) | |
| tree | 56c4c6b3ee0f1367c7bb50d3cb70ee35ec089c82 /lib/libc/stdlib/random.3 | |
| parent | 5ea390eff5605faf9c5d901748e93857d18bbe6f (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib/random.3')
| -rw-r--r-- | lib/libc/stdlib/random.3 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3 index 84680e27b411..d1b8208d521b 100644 --- a/lib/libc/stdlib/random.3 +++ b/lib/libc/stdlib/random.3 @@ -64,11 +64,16 @@ The period of this random number generator is very large, approximately .if n 16*((2**31)\(mi1). .Pp The -.Fn random Ns / Fn srandom -have (almost) the same calling sequence and initialization properties as -.Xr rand 3 Ns / Xr srand 3 . +.Fn random +and +.Fn srandom +functions have (almost) the same calling sequence and initialization properties as the +.Xr rand 3 +and +.Xr srand 3 +functions. The difference is that -.Xr rand +.Xr rand 3 produces a much less random sequence \(em in fact, the low dozen bits generated by rand go through a cyclic pattern. All the bits generated by .Fn random |
