Deleted Added
full compact
rand48.3 (108087) rand48.3 (131504)
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 108087 2002-12-19 09:40:28Z ru $
13.\" $FreeBSD: head/lib/libc/gen/rand48.3 131504 2004-07-02 23:52:20Z 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 ,

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

76such that the values produced lie in the interval [0.0, 1.0).
77.Pp
78The
79.Fn lrand48
80and
81.Fn nrand48
82functions
83return values of type long in the range
14.\"
15.Dd October 8, 1993
16.Dt RAND48 3
17.Os
18.Sh NAME
19.Nm drand48 ,
20.Nm erand48 ,
21.Nm lrand48 ,

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

76such that the values produced lie in the interval [0.0, 1.0).
77.Pp
78The
79.Fn lrand48
80and
81.Fn nrand48
82functions
83return values of type long in the range
84[0, 2**31-1]. The high-order (31) bits of
84[0, 2**31-1].
85The high-order (31) bits of
85r(n+1) are loaded into the lower bits of the returned value, with
86the topmost (sign) bit set to zero.
87.Pp
88The
89.Fn mrand48
90and
91.Fn jrand48
92functions
93return values of type long in the range
86r(n+1) are loaded into the lower bits of the returned value, with
87the topmost (sign) bit set to zero.
88.Pp
89The
90.Fn mrand48
91and
92.Fn jrand48
93functions
94return values of type long in the range
94[-2**31, 2**31-1]. The high-order (32) bits of
95[-2**31, 2**31-1].
96The high-order (32) bits of
95r(n+1) are loaded into the returned value.
96.Pp
97The
98.Fn drand48 ,
99.Fn lrand48 ,
100and
101.Fn mrand48
102functions
97r(n+1) are loaded into the returned value.
98.Pp
99The
100.Fn drand48 ,
101.Fn lrand48 ,
102and
103.Fn mrand48
104functions
103use an internal buffer to store r(n). For these functions
105use an internal buffer to store r(n).
106For these functions
104the initial value of r(0) = 0x1234abcd330e = 20017429951246.
105.Pp
106On the other hand,
107.Fn erand48 ,
108.Fn nrand48 ,
109and
110.Fn jrand48
111use a user-supplied buffer to store the seed r(n),

--- 70 unchanged lines hidden ---
107the initial value of r(0) = 0x1234abcd330e = 20017429951246.
108.Pp
109On the other hand,
110.Fn erand48 ,
111.Fn nrand48 ,
112and
113.Fn jrand48
114use a user-supplied buffer to store the seed r(n),

--- 70 unchanged lines hidden ---