int Rand( int Max )
Returns a random number from 0 to Max-1.

int Min( int A, int B )
Returns the minimum of the two numbers.

int Max( int A, int B )
Returns the maximum of the two numbers.

int Clamp( int V, int A, int B )
Returns the first number clamped to the interval from A to B.


Warning - Unlike the C or C++ equivalents, Min and Max work on integers. There is no warning for using them on floats - your numbers will just be silently rounded down! For floats, you need to use FMin and FMax.
Designed By Blogger Templates | Templatelib & Distributed By Blogspot Templates