pico-engine icon indicating copy to clipboard operation
pico-engine copied to clipboard

The random library `number` function uses zero as both lower and upper bound

Open b1conrad opened this issue 2 years ago • 1 comments

Was expecting it to use zero and one respectively, but with no bounds it always returns zero.

b1conrad avatar Apr 27 '22 22:04 b1conrad

Documented here which seems to imply that it would return a floating point number between 0 and 1, but that's not what happens. This issue would like it to happen as expected.

b1conrad avatar Apr 27 '22 22:04 b1conrad