pick random () to ()
integer(‐ish) output with scientific notation
#160
Labels
bug
Something isn't working
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 as10
, 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.The text was updated successfully, but these errors were encountered: