Shapes and Randomization

Students will be able to:

  • Use and reason about drawing commands with multiple parameters

  • Generate and use random numbers in a program

Vocabulary

Parameter: An Extra piece of information passed to a function to customize it for a specific need.

Introduced Code

Today, we will be working with Lesson 4: Shapes and Randomization in Code.org. We will understand how changing parameters change the sprites.

Remember, the order matters in Course 4 Stage 4 when creating your ellipse.

Knowing your Parameters is key to where your sprite is placed and its height and width.

The Random number Block is unique. It allows you to have the computer choose its own variable according to the limits you give it. Random number 1 to 10 will tell the computer to choose a number between 1 and 10 each occurrence of the command. This block is inserted in the number you want such as time, location, and one of the dimensions.

Rainbow Snake: You are only done when your Teacher can see that you have a snake that does move randomly with each of its elements. Once you have shown your teacher that you are finished, you will be expected to work on Lesson 4 Challange.