Random values can be used to make choices in our program: to draw one shape or another, pick colors from an array, etc. Some examples are shown below, but you should try thinking of some yourself too!
🖥 [ Ссылка ]
ALL THE VIDEOS IN THIS UNIT
🎥 [ Ссылка ]
CHALLENGES
❓ Can you make the lines random lengths too?
❓ Can you change the code to use matrix transformations (like push, pop, translate, and rotate) to make the line drawn at a random angle? How does this change the visual look
![](https://i.ytimg.com/vi/6W2fkQvbDxE/mqdefault.jpg)