std/random
| Function | Result |
|---|---|
random_range(low, high) |
a whole number from low to high, both included |
chance(percent) |
true that often, in percent |
pick(items) |
a random element, of any array |
shuffle(items) |
the elements in a random order, in place |
They use the built-ins random(bound) and random_seed(seed); a program
seeds itself from the clock unless it calls random_seed, which makes a run
repeatable. These numbers are for games and samples, not for secrets.