1SLARUV(1) LAPACK auxiliary routine (version 3.1) SLARUV(1)
2
3
4
6 SLARUV - a vector of n random real numbers from a uniform (0,1)
7
9 SUBROUTINE SLARUV( ISEED, N, X )
10
11 INTEGER N
12
13 INTEGER ISEED( 4 )
14
15 REAL X( N )
16
18 SLARUV returns a vector of n random real numbers from a uniform (0,1)
19 distribution (n <= 128).
20
21 This is an auxiliary routine called by SLARNV and CLARNV.
22
23
25 ISEED (input/output) INTEGER array, dimension (4)
26 On entry, the seed of the random number generator; the array
27 elements must be between 0 and 4095, and ISEED(4) must be odd.
28 On exit, the seed is updated.
29
30 N (input) INTEGER
31 The number of random numbers to be generated. N <= 128.
32
33 X (output) REAL array, dimension (N)
34 The generated random numbers.
35
37 This routine uses a multiplicative congruential method with modulus
38 2**48 and multiplier 33952834046453 (see G.S.Fishman,
39 'Multiplicative congruential random number generators with modulus
40 2**b: an exhaustive analysis for b = 32 and a partial analysis for b =
41 48', Math. Comp. 189, pp 331-344, 1990).
42
43 48-bit integers are stored in 4 integer array elements with 12 bits per
44 element. Hence the routine is portable across machines with integers of
45 32 bits or more.
46
47
48
49
50 LAPACK auxiliary routine (versionNo3v.e1m)ber 2006 SLARUV(1)