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
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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: