You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is Specific to the Pimoroni Version of RPi Micropython Firmware
I have three RPI Picos and they always produce the same sequence of numbers when I call random.random() with the Pimoroni version of firmware (v0.0.5):
The same happens with any of the other 'random' functions, they always produce a replicable sequence.
The standard RPi Micropython port firmware (1.14) from the Official Website does not present this issue, if I install that on all three devices every I always get different numbers.
The text was updated successfully, but these errors were encountered:
What you see is typical for a pseudorandom generator.
I think you simply have to seed it yourself with some random value.
Typically with an noisy ADC converter value or with time evolved since start or last keypress or something, that will be not the same each time.
This is Specific to the Pimoroni Version of RPi Micropython Firmware
I have three RPI Picos and they always produce the same sequence of numbers when I call random.random() with the Pimoroni version of firmware (v0.0.5):
The same happens with any of the other 'random' functions, they always produce a replicable sequence.
The standard RPi Micropython port firmware (1.14) from the Official Website does not present this issue, if I install that on all three devices every I always get different numbers.
The text was updated successfully, but these errors were encountered: