PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Initializes the generator of random numbers.
Example
// Initialize the generator of random numbers
InitRandom()
Syntax
InitRandom(<n>)
<n>: Integer
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.
  • Several calls to InitRandom performed in a very short time will return identical sequences because InitRandom is using the system time to generate sets of random numbers.
  • Using the <n> parameter does not necessarily guarantee to get different sequences.
Component : wd250std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment