|
|
|
|
|
InitRandom (Function) In french: InitHasard Initializes the generator of random numbers.
Syntax
<Result> = InitRandom(<n>)
<Result>: Integer New in version SaaSValue of the random seed chosen by the system to initialize the random number generator. If the parameter is specified, the seed corresponds to this value.
<n>: entier Base number for the generator of random numbers. If this parameter is not specified, the generator of random numbers is based on the system time (hundredths of a second). Remarks - If InitRandom is not called, the random values generated by Random will be the same whenever the program is run.
- If InitRandom is called successively, identical sequences will be returned because InitRandom uses the system time to generate sequences of random numbers.
- Using the <n> parameter does not necessarily guarantee to get different sequences.
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|