xxxxxxxxxx
// In this sketch we learn about functions that return values
let colour;
function setup() {
colour = random(0, 255); // Here we're calling on the random function. *
}
function draw() {
background(colour);
}
// *
// This random function will produce a number between 0 and 255.
// The way we talk about this in coding is to say that random 'returns' a number.
// Or in other words, the random function returns a value.
// In this case, the number is then placed in the colour variable.