GetRandomInt Function

Returns a random number from the Half-Life 2 Random Stream.

int GetRandomInt(int nmin, int nmax)

Parameters

int nmin

Minimum random bound.

int nmax

Maximum random bound.

Return Value

A random number between (inclusive) nmin and nmax.