Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 10
random
2.7/random.adept contains utilities for generating random numbers.
define RANDOM_MAX = /* ??? */
define RANDOM_RANGE = /* ??? */
func randomize() voidInitializes random number generation.
func random() uintReturns a random
uintin the range[0, RANDOM_RANGE).func random(upper_exclusive uint) uintReturns a random
uintin the range[0, upper_exclusive).func random(lower_inclusive, upper_exclusive uint) uintReturns a random
uintin the range[lower_inclusive, upper_exclusive).func normalizedRandom() doubleReturns a random
doublein the range[0.0, 1.0).func randomSetSeed(seed uint) voidSets the seed used to generate random numbers.
func randomInt(upper_exclusive int) intReturns a random
intin the range[0, upper_exclusive).func randomInt(lower_inclusive, upper_exclusive int) intReturns a random
intin the range[lower_inclusive, upper_exclusive).
#default random_use_mt19937 true