@RANDOM

Print Topic  Return to Overview  Previous Topic  Next Topic 

@RANDOM[min, max]:  Returns a pseudo random integer value between min and max, inclusive. The random number generator is initialized from the system clock the first time it is used after TCC starts and will therefore produce a different sequence of numbers each time you use it.

 

Examples:

 

echo %@random[0,1]

echo %@random[-10,10]

 

 

 

Topic "f_random.htm" last edited 1/28/2008. ©2008  JP Software, Inc.
Keywords: @RANDOM,Random