Skip to content

pick random () to () integer(‐ish) output with scientific notation #160

Open
@zamfofex

Description

@zamfofex

The pick random () to () block detects whether it should output only integers by checking whether either of its inputs contains a dot, but it’s possible to input fractional numbers in a different way, i.e. with scientific notation.

E.g. if you enter 5e-1 in its first field (and leave the second field as 10, it will “attempt” to output only integers, but they will be offset by 0.5 (outputting e.g. 1.5, 6.5, 3.5, etc.)

The expected/intuitive behavior is that it should output an arbitrary float value in the range just as if 0.5 had been entered.

pick random (5e-1) to (10) outputting 3.5
pick random (5e-1) to (10) outputting 3.285...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions