Initializes the random number generator. If you use the same number for initialization, you will get the same sequence of random accesses for all randomly generated actions (for example, random variables, transaction sequences, ...). By using the same initialization values for the random generator, you can repeatedly reproduce a simulation exactly.
Kernel.bdh
RndSeed( in nSeed : number );
Parameter | Description |
---|---|
nSeed | Initialization value |
dcltrans transaction TRndSeed begin RndSeed(123); write("random number generator initialized"); writeln; end TRndSeed;
random number generator initialized