mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 18:35:20 +02:00
Add range option to PseudoRandom:next()
This commit is contained in:
@@ -632,7 +632,10 @@ methods:
|
||||
PseudoRandom: A pseudorandom number generator
|
||||
- Can be created via PseudoRandom(seed)
|
||||
methods:
|
||||
- next(): return next random number [0...32767]
|
||||
- next(): return next integer random number [0...32767]
|
||||
- next(min, max): return next integer random number [min...max]
|
||||
(max - min) must be 32767 or <= 6553 due to the simple
|
||||
implementation making bad distribution otherwise.
|
||||
|
||||
Registered entities
|
||||
--------------------
|
||||
|
Reference in New Issue
Block a user