Field-Map Scripting

4.1.3.1.21 Randomize

Randomize procedure


Prototype:

procedure Randomize;

Description:

The Randomize procedure initializes the built-in random number generator with a random value (obtained from the system clock). This procedure is used with Random function.

Syntax:

Randomize;

Return value:

none



Example:


var

 x : extended;


begin

Randomize;

 x:= Random;

 ShowMessage(FloatToStr(x));

end.



Output in Field-Map Data Collector:


See also:

Power; Round; RoundTo, RoundVariant; Round2int, Cos; ArcCos; ArcCosH; Sin; ArcSin; ArcSinH; ArcTan; ArcTan2; ArcTanH; CosH; SinH; Tan; TanH; Random; RandomRange; Randomize; Floor; Ceil; Int; Frac; Log10; Ln; Exp; Abs; Min; Max; Odd; SecondsBetween;CompareValue; SameValue; Trunc


Example