Skip to content

the random algorithm has an error #31

@sixleaves

Description

@sixleaves

in your code, there is a random algorithm, Math.floor(Math.random() * (max -min )) +1; this can't produce correctly random number [a, b].

there is a correctly method, Math.floor(Math.random() * (max -min + 1)) + min;

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