I dont understand it fully, but i think this is what you need.
PHP Code:
<?php
$coords = array("1,2", "1,4", "1,8", "1,0", "2,2", "2,6", "2,0", "3,5", "3,6", "3,7", "4,9", "5,3", "5,9", "6,3", "6,7", "7,3", "7,9", "7,0"); //which are restricted
$rand1 = rand(1,70); //1-70
$rand2 = rand(0,9); //0-9
$searching = false;
while($searching){
$newcoords = $rand1.",".$rand2;
if(in_array($newcoords, $coords)){
$rand1 = rand(1,70); //1-70
$rand2 = rand(0,9); //0-9
}else{
$searching = true;
}
}
echo $newcoords;
?>