Apologies if this has been discussed but I couldn’t find an answer in the forum. I have a list of angles in a graph. Can a button be pushed to choose an angle randomly instead of refreshing the graph?
Using a ‘seed’ in a randomGenerator serves the same purpose as refreshing a graph. Any time seed changes, that number refreshes, so here we’re using the pressCount to change it.
The first argument random() is the set of numbers to choose from, the second is how many to choose, and the third is the variable that will reseed the random choice.