Game Development Community

Random number generator question

by Jared Allen · in Torque Game Builder · 01/20/2006 (8:19 pm) · 2 replies

Is there an easy way to access a random number generator using torque script in T2D?

About the author

Recent Threads


#1
01/20/2006 (8:30 pm)
Taken from the TGE console commands document, found here

getRandom([[max]||[min,max]])

-Used to get a random number
-Numeric return

%random = getRandom(34,176);
#2
01/20/2006 (8:40 pm)
That was easy. Thanks for the reference also.