Skip to content

Off-by-one errors in random number generation. #5

@MynockSpit

Description

@MynockSpit

The fix in 0.2.6 for rounding errors causes off-by-one errors.

e.g. Running 1d6 repeatedly will occasionally produce 7s.

let roller = new DiceRollerFactory()
roller.rollValue('1d6')

For example:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions