Dec 122017
- random chooses a random number from 0 to the number you specify
- So random 10 will pick a number from 0 to 10
- If you use repeat, you can make lots of things appear in random places
- Try this code:
repeat 20
[
pu setxy random 250 random 250 pd
circle 10
]
- Instead of a circle, you could make a procedure called snowflake to create your own snowfall!
- How can you change random 250 to get it anywhere on the screen (between -250 and 250)?