-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First random number always the same #255
Comments
Fount that one too. The RNG gets seeded identically every time - or not at all. Anyway: The sequence of random numbers is always the same. |
I'm working on it. Choosing the calliope mini 1 template should still give random numbers. |
Sorry, I was talking about the beta version. Seems related to the bluetooth stack. I Can reproduce it on the microbit when I load ble: https://makecode.microbit.org/S81402-73332-20016-17530 The random seed generation falls back to a static seed if ble is enabled: https://github.com/calliope-edu/codal-microbit-v2/blob/dc0383b581156ef8196202b299a629c6c29d6ba9/source/MicroBitDevice.cpp#L67 Usually, the |
The block "random int" generates the same pseudo random number after reset. It looks like it shows the seed, but has not generated a random number yet.
The text was updated successfully, but these errors were encountered: