E.srand(v) should seed it, but for some reason isn't.
Looking at the implementation of it it seems to have an if statement for STM chips which gets a random number from an analog reading, but (I think) on other chips just gets a random number from the generator (which is always the same).
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.
E.srand(v) should seed it, but for some reason isn't.
Looking at the implementation of it it seems to have an if statement for STM chips which gets a random number from an analog reading, but (I think) on other chips just gets a random number from the generator (which is always the same).