Get a random element from an array of possible elements based on weight.
A weighted array of elements to select randomly from.
A random element from the weighted array.
Private
xmur3Hash function for generating seeds from strings using xmur3. https://github.com/bryc/code/blob/master/jshash/PRNGs.md
The string to generate a seed from.
A function which returns a different number on each call.
Private
sfc32"Small Fast Counter" seed generator, chosen for high bit randomness and speed. https://github.com/bryc/code/blob/master/jshash/PRNGs.md
Seed Number 1
Seed Number 2
Seed Number 3
Seed Number 4
A random seed.
A PRNG seeded random number generator