api/LibTrueRandom-1.0
LibTrueRandom.GetRandom(minimum, maximum, callback)
Asychronously send a random request to the server and call the provided callback when the result is returned.
Parameters
- minimum
- The minimum number. Must be at least 1 and must be an integer.
- maximum
- The maximum number. Must be greater than the minimum, no greater than 1000000, and must be an integer.
- callback
- A function to call when the result is known.
Usage
LibTrueRandom.GetRandom(1, 10, function(value) print("Got random: " .. value) end)
Comments