Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
call random_seed(size = n) allocate(seed(n)) ! ... call random_seed(put=seed)
System.Random.mkStdGen s
val random = Random(seed=s)
call random_seed (put=s)
math.randomseed(s)
srand($s);
var SomeInteger: Integer; Value: double; begin ... //initializes the PRNG's seed with a value depensing on system time Randomize; Value := random; ... //Output will be the same eacht time the program runs RandSeed := SomeInteger; Value := random; ... end.
srand($s);
r = Random.new(s)