random-seedable icon indicating copy to clipboard operation
random-seedable copied to clipboard

documentation doesn't match function for `randRange`

Open jazoom opened this issue 2 years ago • 1 comments

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.

jazoom avatar Feb 16 '22 06:02 jazoom