TRiP98 random command
| GSI Biophysics | TRiP98 long write-up |

Random


random | events / forward()   seed1()   debug
                  lecuyer     seed2()
                  prn         list

Purpose

Handles internal random number generator, for use with biological dose computation. 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
Sets the number of events to be used for the sampling. Startup default is 500.
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 1000 / seed1(0xB)
Set 1000 events and the first seed value to hexadecimal 'B' (decimal 11)
| GSI Biophysics | TRiP98 long write-up |
Last updated: M.Kraemer@gsi.de, 11-Feb-1999