Previous: Random function To the Table of Content Next: Read procedure

- 4.62.2.66 -
Standard Units
System Unit
System Unit Procedures and Functions

Randomize procedure

Targets: MS-DOS, OS/2, Win32


System Unit

Initializes the built-in random number generator with a random value (obtained from the system clock).

Declaration:
procedure Randomize;
Example:
{$ifndef __CON__}
  This program must be compiled as console application only
{$endif}
begin
  Randomize;
  repeat
    Writeln(Random(65535));
  until
  KeyPressed;
end.
See also:
Random


Previous: Random function To the Table of Content Next: Read procedure
Random function Table of Content Read procedure

- 4.62.2.66 -