AAP-3.E For generating random values:
a. Write expressions to generate possible values.
b. Evaluate expressions to determine the possible results
The objective for this lesson is to use randomization with List to develop computer generated music. Activity 1 will introduce the random function and demonstrate how it can be applied to have the computer select choices from a List.
Activity 8.6 (55 minutes)
Facilitate students’ discussion on the iPod shuffle with random play capability (PowerPoint slide 2).
Facilitate PowerPoint slides on randomly selecting from a List/Array (PowerPoint slides 3, 5 (Python) or 4, 6 (Javascript), Archived EarSketch Chapter 20.1 (Random numbers)).
Present PowerPoint and video explaining randomness and Remixing a Rhythm (PowerPoint slides 7, 8, 10 (Python) or 9-10 (Javascript), Archived EarSketch Chapter 20.2 (Remixing a Rhythm)).
Assign students to work on their Jukebox Challenge (PowerPoint slide 11).
Present each multiple-choice question to class and allow time for thought. Then, discuss as a group (PowerPoint slides 12, 14 (Python) or 13 (Javascript)).