- 4.67.2.66. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.66. Randomize procedure
4.67.2.66. 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
- 4.67.2.66. -