City17
4 years
returns a real in range [lowBound, highBound) that is: inclusive, exclusive. Bounds may be negative, but should be lowBound <= highBound. When lowBound==highBound, always returns that number.
TODO: Understand logic when lowBound > highBound. negative lowBound not tested.
Desyncs! The random number generator is a global, shared resource. Do not change its state in local blocks asynchronously.
See: GetRandomInt, SetRandomSeed
TODO: Understand logic when lowBound > highBound. negative lowBound not tested.
Code Select
1 SetRandomSeed(1229611)
2 string.format("%.16f", GetRandomReal(0, 0.002)) --> 0.00
Desyncs! The random number generator is a global, shared resource. Do not change its state in local blocks asynchronously.
See: GetRandomInt, SetRandomSeed