| GSI Biophysics
| TRAX long write-up
|
random | events / forward() seed1() debug
lecuyer seed2()
prn list
Purpose
Access internal random number generator.
Random numbers are obtained (deterministically)
by two different linear congruential algorithms, prn
and L'Ecuyer,
which use one and two seed values, respectively.
Parameters
- events
-
Not yet implemented.
- forward(fw)
-
Winds forward the internal random seed by computing
<fw>
random numbers.
- lecuyer
-
Switch a long period random generator (L'Ecuyer) which uses
two seed values.
- prn
-
Switch a short period (2**30) random generator which uses the
algorithm
seed1 = ( seed1 * 32781 ) % (2**32)
This is the startup default.
- seed1(s1)
-
First seed value (for L'Ecuyer) or single seed value (for prn).
May be a decimal integer or a hex value (starting with 0x).
Note that for
prn
only odd seeds may be used !
- seed2(s2)
-
Second seed value (for L'Ecuyer).
May be a decimal integer or a hex value (starting with 0x).
- list
-
Lists current random settings.
- debug
-
Debug switch. Lots of output !
Remark
none
Examples
random / seed1(0xB)
Set the first seed value to hexadecimal 'B' (decimal 11)
| GSI Biophysics
| TRAX long write-up
|
Last updated: M.Kraemer,
$Id: traxcmdrandom.html,v 1.2 2008/02/05 10:51:42 kraemer Exp $