[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
VS_Random() Returns a random integer
Description:
VS_Random() will return a random number based on the parameters you
pass it.
Syntax:
n_Random = VS_Random( n_Max, n_Seed )
Pass:
n_Max is the maximum number that VS_Random() will generate
n_Seed is a random number seed that VS_Random() will use to make
sure the number is truly "random". i.e. A computer is really
incapable of generating a truly "random" number. It must perform some
algorithm on a specified number to generate what appears to be a
"random". By allowing the programmer to provide a "random number
seed" each program has the ability to have a slightly different
alogrithm and therefore VS_Random() will generate a slightly different
number.
Return:
n_Random is a random integer between 0 and n_Max
Notes:
Example:
? VS_RANDOM(100,23456) // Will supply a random integer between 0
and 100.
Usage:
See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson