The inclusive lower bound of the random number returned.
The inclusive higher bound of the random number returned.
If lowBound > highBound then it just swaps the values.
If you call GetRandomInt(INT_MIN, INT_MAX)
or GetRandomInt(INT_MAX, INT_MIN)
it will always return the same value, namely INT_MIN
or INT_MAX
.
See http://hiveworkshop.com/threads/random.286109#post-3073222 for an overview of the algorithm used.
Desyncs! The random number generator is a global, shared resource. Do not change its state in local blocks asynchronously.
See: GetRandomReal
, SetRandomSeed
.
Generated using TypeDoc
Returns a random integer in the range [lowBound, highBound] (inclusive). Bounds may be negative, but should be lowBound <= highBound. When lowBound==highBound, always returns that number.