I don’t love the way random colors are demonstrated in CSD Unit 3 because it does not show students how to use a variable to represent a randomly generated color like this:
var randomColor = rgb(randomNumber(0, 255), randomNumber(0, 255),randomNumber(0, 255));
fill(randomColor);
Here is some example code I wrote up to show 3 methods for generating random colors, including the one above.
Let me know what you think or if you have any suggestions for improving it.
John