Returns a random value n between 0 and X (0 <= n < X) where X is the result of the expression.
To generate random numbers between the expression and a number other than zero, use the expression as the range between the maximum and minimum values, and then add the minimum to the random number. For example, the statement Attr1 = 2 + RAND(3) generates a random number from two up to, but not including, five. An alternate method is to use a uniform distribution. Note that the Random function works very similar to a uniform distribution.
This function returns a real number, although the real value may be converted to an integer using the Truncate function.
© 2014 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com