Skip to content
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

no function to set SEED for random number generator #10326

Open
PSLLSP opened this issue Jan 1, 2025 · 0 comments
Open

no function to set SEED for random number generator #10326

PSLLSP opened this issue Jan 1, 2025 · 0 comments

Comments

@PSLLSP
Copy link

PSLLSP commented Jan 1, 2025

Makecode has no function/block to set SEED value used by random numbers generator. Current situation is that random number sequence repeats after each reset. That makes games predictable, etc. Could be a function added to allow set SEED to predefined value or just some random value (I understand this is a tricky, maybe some timer or sensor value could be used). JavaScript has function Math.random(), could be block for this function added to Makecode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant