🧮 Generates a random value.
Return value can be the lower bound but can never exactly be the upper bound.
Optional
lower bound (inclusive) or an array
upper bound (exclusive)
a random number or element
await Canvas(200);background(0.8);frameRate(5);q5.draw = function () { circle(0, 0, random(200));}; Copy
await Canvas(200);background(0.8);frameRate(5);q5.draw = function () { circle(0, 0, random(200));};
q5.draw = function () { circle(random(-100, 100), random(-10, 10), 10);}; Copy
q5.draw = function () { circle(random(-100, 100), random(-10, 10), 10);};
🧮 Generates a random value.
Return value can be the lower bound but can never exactly be the upper bound.