How to store random coordinates?

So I’m using the conventional for loop but when I run the following

    translate(list.x, list.y, list.z);

I get the error “The global variable “x” does not exist” (same for y and z). Why is that?