Skip to content

documentation doesn't match function for randRange #2

@jazoom

Description

@jazoom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions