Assigning all units of an array a common random number
in
Programming Questions
•
9 months ago
Hi guys,
how can I assign all the units in my array a common random number? In my case, these are particles that explote as a firework. I am using a PVector for the location (a variable), and once I type "location = new PVector(random, random);", the particles explode in a diagonal, because each particle picks its own random x- and y-value. What to do? :D
1