I've found that this bit of code is just about good enough for me for the time being:
var getRandom = function() { var r = getTime() * 10000; r -= parseInt(r); return r; };
It gives a pseudo-random number due to the granularity of the timer.
@AlexOwen started
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.
I've found that this bit of code is just about good enough for me for the time being:
It gives a pseudo-random number due to the granularity of the timer.