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 3 years ago • 1 comments
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.

jazoom avatar Feb 16 '22 06:02 jazoom

Will have a look into it this weekend.

chrisakroyd avatar Oct 07 '22 13:10 chrisakroyd