Show: Delphi C++
Display Preferences

System.RandSeed

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

RandSeed: Integer = 0;    { Base for random number generator }

C++

extern DELPHI_PACKAGE int RandSeed;

Properties

Type Visibility Source Unit Parent
variable public
System.pas
System.hpp
System System

Description

RandSeed stores the built-in random number generator's seed.

By assigning a specific value to RandSeed, you can use the Random function to repetitively generate a specific sequence of random numbers. This is useful for applications that deal with data statistics and simulations. For applications that deal with encryption, see the note under the Random function.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance