rand(2): fix nroff output

front
cinap_lenrek 2011-11-27 00:50:53 +01:00
parent 440d68d003
commit 3bd600c01e
1 changed files with 10 additions and 5 deletions

View File

@ -51,13 +51,15 @@ ulong nfastrand(ulong val)
returns a uniform pseudo-random returns a uniform pseudo-random
number number
.IR x , .IR x ,
.RI 0≤ x <2\u\s715\s10\d. .if t 0≤ \fIx\fR <2\u\s715\s10\d.
.if n 0≤ x <2^15.
.PP .PP
.I Lrand .I Lrand
returns a uniform returns a uniform
.B long .B long
.IR x , .IR x ,
.RI 0≤ x <2\u\s731\s10\d. .if t 0≤ \fIx\fR <2\u\s731\s10\d.
.if n 0≤ x <2^31.
.PP .PP
.I Frand .I Frand
returns a uniform returns a uniform
@ -115,7 +117,8 @@ second.
.I Ntruerand .I Ntruerand
returns a uniform random integer returns a uniform random integer
.IR x , .IR x ,
.RI 0≤ x < val ≤ 2\u\s732\s10\d-1. .if t 0≤ \fIx\fR < \fIval\fR ≤ 2\u\s732\s10\d-1.
.if n 0≤ x < val ≤ 2^32-1.
.PP .PP
.I Genrandom .I Genrandom
fills a buffer with bytes from the X9.17 pseudo-random fills a buffer with bytes from the X9.17 pseudo-random
@ -146,7 +149,8 @@ uses
to return a uniform to return a uniform
.B "unsigned long .B "unsigned long
.IR x , .IR x ,
.RI 0≤ x < 2\u\s732\s10\d-1. .if t 0≤ \fIx\fR <2\u\s732\s10\d-1.
.if n 0≤ x <2^32-1.
.PP .PP
.I Nfastrand .I Nfastrand
uses uses
@ -154,7 +158,8 @@ uses
to return a uniform to return a uniform
.B "unsigned long .B "unsigned long
.IR x , .IR x ,
.RI 0≤ x < val ≤ 2\u\s732\s10\d-1. .if t 0≤ \fIx\fR < \fIval\fR ≤ 2\u\s732\s10\d-1.
.if n 0≤ x < val ≤ 2^32-1.
.SH SOURCE .SH SOURCE
.B /sys/src/libc/port/*rand.c .B /sys/src/libc/port/*rand.c
.br .br