How-To Guide
SCRATCH CODING KIT
Loop and Random Numbers
Wiggly Lizad Robot
Now, you understand what loops are. Let’s make a simple game program.
This game is called ‘Wiggly Lizard Robot!’ We will code for the left motor and the right motor to move for a
random amount of time to make the lizard robot move forward. Instead of moving once and stopping, we will
use a loop to keep the robot moving for a certain amount of time.
Refer to the picture below
Left motor
Right motor
Program off