public class TRandom1 extends TRandom
| Modifier and Type | Field and Description |
|---|---|
protected float |
fCarry |
protected int |
fCount24 |
protected float[] |
fFloatSeedTable |
protected static int |
fgMaxIndex |
protected static int |
fgNumEngines |
protected int |
fIlag |
protected int |
fIntModulus |
protected int |
fJlag |
protected int |
fLuxury |
protected double |
fMantissaBit12 |
protected double |
fMantissaBit24 |
protected int |
fNskip |
protected long |
fTheSeeds |
| Constructor and Description |
|---|
TRandom1()
default constructor
|
TRandom1(long seed,
int lux)
Luxury level is set in the same way as the original FORTRAN routine.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Rndm(int rnd)
return a random number in ]0,1]
|
void |
RndmArray(int size,
double[] vect)
return an array of random numbers in ]0,1]
|
void |
RndmArray(int size,
float[] vect)
return an array of random numbers in ]0,1]
|
void |
SetSeed(long seed)
Set RanLux seed using default luxury level
|
void |
SetSeed2(long seed,
int lux)
The initialisation is carried out using a Multiplicative Congruential generator using formula constants of
L'Ecuyer as described in "A review of pseudorandom number generators" (Fred James) published in Computer Physics
Communications 60 (1990) pages 329-344
|
void |
SetSeeds(long seeds,
int lux)
set seeds
|
protected static int fgNumEngines
protected static int fgMaxIndex
protected int fNskip
protected int fLuxury
protected int fIlag
protected int fJlag
protected int fCount24
protected float[] fFloatSeedTable
protected float fCarry
protected final int fIntModulus
protected final long fTheSeeds
protected final double fMantissaBit24
protected final double fMantissaBit12
public TRandom1()
public TRandom1(long seed,
int lux)
seed - initial seedlux - initial luxurypublic double Rndm(int rnd)
rnd - empty seedpublic void RndmArray(int size,
double[] vect)
size - size of storage vectorvect - storage vectorpublic void RndmArray(int size,
float[] vect)
public void SetSeed(long seed)
public void SetSeed2(long seed,
int lux)
seed - initial seedlux - initial luxurypublic void SetSeeds(long seeds,
int lux)
seeds - initial seedlux - initial luxuryCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.