Alice Programming
Learn Alice in FREE step-by-step lessons.
Alice Programming
In this nodule you will learn more about random variables.
We can use random numbers in many ways.
One thing we can do with random users is to flip a coin or select a card from a deck. Those are things that we think of as random.
We can also use random numbers to make movement seem more natural.
When a person jumps up and down, they don't jump exactly the same amount each time, so we could have them jump a random amount within a range.
In order to do this you will:
- Write code to generate random numbers in 2 different ways.
- Use random values in your animation procedures so that characters move more naturally.
(For example, a fish swimming back and forth doesn't move exactly the same amount each time.)
- Use loops to create a number guessing game with hints "too high" and "too low"