Picolab / pico-engine

An implementation of the pico-engine hosted on node.js
http://picolabs.io/
MIT License
43 stars 8 forks source link

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

Open b1conrad opened 2 years ago

b1conrad commented 2 years ago

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

b1conrad commented 2 years ago

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.