Today you will use random numbers to make a sprite move unpredictably.
1 Warm-Up
2 Predict
3 Try It
4 Plan
5 Build
6 Fix It
7 Extend
8 Math Challenge
For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-10 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
| 🎯 I can | use random numbers to make a sprite move unpredictably |
| 🧩 New blocks | 1 block |
| 📝 New words | 7 words |
| ⏱ Lesson time | ~35 min |
Teacher Guide
📋 Before class
⚠️ Common misconceptions
- Students may type the same number for both slots, making the range zero — the cat always goes to the same spot.
- Students may forget that pick random must go INSIDE the go-to block, not beside it.
- Some students expect the cat to move smoothly; clarify it jumps instantly to a new position.
🎯 Differentiation
🐢 Struggling: Pre-fill the go-to block with one random slot done. Student only needs to drag the second random block.
🚀 Advanced: Send them on to the 🔴 hide-and-seek task: the cat hides, jumps to a random spot, and pops up again, five times.
💡 During the lesson
- Warm-UpHold up a die. Roll it. Ask: "Did I choose this number?" (No — it was random.) Then ask: "Can Scratch roll a dice?" Build curiosity before opening the computer. A random pick has a minimum 📉 — the smallest number it can give — and a maximum 🔝, the biggest.
Point to each frame. Ask: "Is the new place the same each time?" (No.) Emphasize: random means different every time. Have two students pick a number from 1–10 — show they pick differently. - Try ItThis green Operators block lives INSIDE another block's oval slot. It gives a new number each time the script runs. Show the oval shape — it only fits in oval slots.
Experiment 1 keeps y fixed — only one axis is random. Experiment 2 shrinks the range (math: small interval). Experiment 3 adds a repeat block — chained randomness. Ask: "Which one made the cat move the most?" - PlanDo the first box together. Pick, then watch both stages. Ask: "Pick a random x — what is x? Pick a random y — what is y?" Reinforce that x and y are two different directions.
- BuildWatch for students who drop the random block beside go-to instead of inside it. Show the oval slot on the x: label — that is where the random block snaps in. Demonstrate the snap sound.
Show the picture first. Ask what will happen — everyone points or says one word.
Everyone picks an answer first. Then press the flag together.
Change one thing at a time. Run it, watch, then change the next thing.
Pairs put the cards in order before anyone opens Scratch.
Students build step by step. Walk around — help with questions, not with the mouse.
Ask: what did we want, and what did it do? Let them find it.
Fast finishers pick the next tier. Everyone else finishes their build.
Work it out on paper first. Then check it on the stage.