Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation doesn't match function for randRange #2

Open
jazoom opened this issue Feb 16, 2022 · 1 comment
Open

documentation doesn't match function for randRange #2

jazoom opened this issue Feb 16, 2022 · 1 comment

Comments

@jazoom
Copy link

jazoom commented Feb 16, 2022

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.
@chrisakroyd
Copy link
Owner

Will have a look into it this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants