I don’t know how you save your variables. I will asume that you declare them inside your expression. This first expression if for using same position of x and y(third x matches third y)
xArray = [100,300,500,700];
yArray = [200,400,600,800];
randomPosition = Math.round(random()*(xArray.length-1));
x = xArray[randomPosition];
y = yArray[randomPosition];
[x,y]
This code is for using random x and random y.
xArray = [100,300,500,700];
yArray = [200,400,600,800];
xrandomPosition = Math.round(random()*(xArray.length-1));
yrandomPosition = Math.round(random()*(xArray.length-1));
Math.floor(random()*xArray.length);
x = xArray[xrandomPosition];
y = yArray[yrandomPosition];
[x,y]
Feel free to ask if you need any further explanation.
Andrei