cfunction src/core/math.c on line 151, column 1 (math/rng-int rng &opt max) Extract a random integer in the range [0, max) for max > 0 from the RNG. If max is 0, return 0. If no max is given, the default is 2^31 - 1.