random-seedable
random-seedable copied to clipboard
documentation doesn't match function for `randRange`
trafficstars
Documentation says randRange is "inclusive" for 'min' and "inclusive" for 'max', but on running thousands of iterations it seems it is actually exclusive of 'max'.
Using XORWow
random.randRange(min, max)
Generates a number within the given range.
Parameters
min -> Lower bound of the numbers to generate (inclusive).
max -> Upper bound of the numbers to generate (inclusive).
Returns
Number min <= Number <= max.
Will have a look into it this weekend.