RndSeed Function

Action

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.

Include file

Kernel.bdh

Syntax

RndSeed( in nSeed : number );
Parameter Description
nSeed Initialization value

Example

dcltrans
  transaction TRndSeed
  begin
    RndSeed(123);
    write("random number generator initialized"); writeln;
  end TRndSeed;

Output

random number generator initialized