ScratchData LogoScratchData
Back to Lucario621's profile

Random number generator not working?

LULucario621•Created November 16, 2014
Random number generator not working?
30
22
1451 views
View on Scratch

Description

I'm a bit confused... When you remove if structure from the script, you can see the variable on the stage showing random numbers - as expected. But if you keep it attached, it seems to always have a random value of 1 - and it shows since the cat seems to rotate uniformly. Also, it seems that if you add almost *any* block in between the set variable block and the if structure, then it will work correctly again. Is the number not being generated fast enough?

Project Details

Project ID34596954
CreatedNovember 16, 2014
Last ModifiedNovember 17, 2014
SharedNovember 16, 2014
Visibilityvisible
CommentsAllowed