On my board Math.random(); returns a number between -0.5 and +0.5. Not between 0 and 1.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
On my board Math.random(); returns a number between -0.5 and +0.5. Not between 0 and 1.