Deleted Added
full compact
rand48.3 (108030) rand48.3 (108087)
1.\" Copyright (c) 1993 Martin Birgmeier
2.\" All rights reserved.
3.\"
4.\" You may redistribute unmodified or modified versions of this source
5.\" code provided that the above copyright notice and this and the
6.\" following conditions are retained.
7.\"
8.\" This software is provided ``as is'', and comes with no warranties
9.\" of any kind. I shall in no event be liable for anything that happens
10.\" to anyone/anything when using this software.
11.\"
12.\" @(#)rand48.3 V1.0 MB 8 Oct 1993
1.\" Copyright (c) 1993 Martin Birgmeier
2.\" All rights reserved.
3.\"
4.\" You may redistribute unmodified or modified versions of this source
5.\" code provided that the above copyright notice and this and the
6.\" following conditions are retained.
7.\"
8.\" This software is provided ``as is'', and comes with no warranties
9.\" of any kind. I shall in no event be liable for anything that happens
10.\" to anyone/anything when using this software.
11.\"
12.\" @(#)rand48.3 V1.0 MB 8 Oct 1993
13.\" $FreeBSD: head/lib/libc/gen/rand48.3 108030 2002-12-18 10:13:54Z ru $
13.\" $FreeBSD: head/lib/libc/gen/rand48.3 108087 2002-12-19 09:40:28Z ru $
14.\"
15.Dd October 8, 1993
16.Dt RAND48 3
17.Os
18.Sh NAME
19.Nm drand48 ,
20.Nm erand48 ,
21.Nm lrand48 ,

--- 136 unchanged lines hidden (view full) ---

158.Fn mrand48 ,
159and
160.Fn jrand48 ,
161and the seed used in
162.Fn drand48 ,
163.Fn lrand48 ,
164and
165.Fn mrand48 .
14.\"
15.Dd October 8, 1993
16.Dt RAND48 3
17.Os
18.Sh NAME
19.Nm drand48 ,
20.Nm erand48 ,
21.Nm lrand48 ,

--- 136 unchanged lines hidden (view full) ---

158.Fn mrand48 ,
159and
160.Fn jrand48 ,
161and the seed used in
162.Fn drand48 ,
163.Fn lrand48 ,
164and
165.Fn mrand48 .
166An array of 7 shorts is passed as parameter; the first three shorts are
166An array of 7 shorts is passed as argument; the first three shorts are
167used to initialize the seed; the second three are used to initialize the
168multiplicand; and the last short is used to initialize the addend.
169It is thus not possible to use values greater than 0xffff as the addend.
170.Pp
171Note that all three methods of seeding the random number generator
172always also set the multiplicand and addend for any of the six
173generator calls.
174.Pp
175For a more powerful random number generator, see
176.Xr random 3 .
177.Sh AUTHORS
178.An Martin Birgmeier
179.Sh SEE ALSO
180.Xr rand 3 ,
181.Xr random 3
167used to initialize the seed; the second three are used to initialize the
168multiplicand; and the last short is used to initialize the addend.
169It is thus not possible to use values greater than 0xffff as the addend.
170.Pp
171Note that all three methods of seeding the random number generator
172always also set the multiplicand and addend for any of the six
173generator calls.
174.Pp
175For a more powerful random number generator, see
176.Xr random 3 .
177.Sh AUTHORS
178.An Martin Birgmeier
179.Sh SEE ALSO
180.Xr rand 3 ,
181.Xr random 3