Set your corrdinates
position <- Vector(coordinatex, coordinatey,coordinatez ); //here
local RandomLoc = RandNum( 5,10 );
player.Pos = Vector(position.x+ RandNum(1,5), position.y+RandomLoc, position.z);
Don't touch the below function
function RandNum(start, finish)
{
local t;
if (start < 0) t = ((rand() % (-start + finish)) + start)
else
{
t = ((rand() % (finish - start)) + start);
}
return t;
}