Download presentation
Presentation is loading. Please wait.
Published byNancy Hardy Modified over 8 years ago
1
Randomness Exploring Computer Science Lesson 4-10 – Part 2
2
Objectives The students will be able to: Use a random number generator to write a dice program.
3
Journal What does the word random mean in English? Write down the questions. Answer with complete thoughts and sentences or you will not receive full credit on your journal
4
Randomness if I roll a pair of dice, will the numbers come out in order (2, then 3, then 4 the next roll, etc.)
5
Randomness This unpredictability is called randomness. Randomness can make games more exciting. For example, how many spaces will I get to move this turn? Randomness is also used in computer science for simulations and in scientific/statistical experiments.
6
Getting a Random Number in Scratch pick random is under operations
7
Let’s Look at a Program… This is the start of a program… What do you think it does?
8
Finish the Program… Download dice.sb from the website. Finish the dice program so it works completely and then add a second die. You can duplicate the sprite but they need to work separately! See is you can figure out how to hide the variables from the screen.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.