We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I'm new to processing, I was wondering if anyone could help me out I'm trying to figure out how to write a code that chooses one of two numbers randomly, like flipping a coin
i want to be able to choose between 95 and 210 so each time the program runs it chooses 95 or 210 for the x value
thanks!
Answers
Kf
same idea, written in a longer form:
For more on the conditional (aka ternary) operator ? to load one of two values concisely, see:
https://processing.org/reference/conditional.html