Yep, but if im correct, 0,y,z or x,y,0 are not real coordinates, and the var rand: has a chance at being 0, so add something like this
If
IsVar [x] [=] [0]
Then
Loop
ElseIf
IsVar [z] [=] [0]
Then
Loop
Else
//Do your script here
EndIf
This basically checks if one of the x or z coords is 0, if so, it retries