How to store random coordinates?

Awesome, thanks!

One follow-up question:

In this for-loop

for (PVector pv : list) {
    pushMatrix();
    translate(pv.x, pv.y, pv.z);
    sphere(14); 
    popMatrix();
}

How could I use the loop index (pv) to extract elements from an IntList that I’ve defined outside of the loop?

When I run the following

float var = map(myIntList.get(pv), 0, 10000000000, 0, 100);

I get the error: The function “get()” expects parameters like: “get(int)”

Thank you!