I understand the problem with choosing randoms either 1: inside function draw(), or 2: inside functions that are called inside draw, but why is it that random() is a scope error outside of setup() ?
Is it necessary to generate all randoms in setup(), then save them in arrays for later use, or is there a better option? signed, NewToThisServer
We can prematurely instantiate p5 via new p5;
so we can access its API right way:
1 Like