Random Class
Use to generate random numbers.
More information available in parent classes: Object
Notes
The Random class supersedes the Rnd function. It performs the same functions and more.
You should create only one Random object per application. Creating an new Random object each time you need another random number is inefficient and can lead to some hard-to-find bugs.
Example
The following example generates a random integer in the range from 0 to 1,000.
See Also
Rnd function.