<?
/* map with 36 fields, of which 4 are not passable */
$mapWidth 6;
$unpassable = array(9,12,22,31);

/* map with 400 fields, of which 10 are not passable */
$mapWidth 20;
$unpassable = array(9,12,22,31,87,110,168,185,314,344);

/* map with 1600 fields, of which 80 are not passable */
$mapWidth 40;
$unpassable = array(1,17,60,72,92,93,120,140,163,168,199,203,259,287,315,322,334,386,433,475,493,497,501,514,524,550,566,584,585,600,666,674,710,714,725,738,763,777,804,806,808,853,858,863,873,883,888,894,896,946,990,1061,1110,1111,1135,1152,1214,1215,1238,1250,1274,1286,1318,1331,1351,1361,1387,1389,1451,1494,1506,1513,1522,1532,1541,1548,1567,1593);

/* map with 6400 fields, of which 250 are not passable */
$mapWidth 80;
$unpassable = array(16,20,25,31,39,47,54,62,73,80,82,96,101,102,104,126,137,144,145,152,154,166,167,186,217,220,222,242,249,251,253,270,273,274,276,280,300,304,313,317,324,337,338,342,345,350,353,356,359,361,365,387,396,404,405,408,416,422,424,436,437,439,463,471,472,479,480,495,507,520,522,531,534,541,558,560,566,574,595,605,614,619,631,640,661,668,676,678,696,697,699,700,707,748,757,761,763,768,774,778,781,788,801,811,818,821,831,838,839,840,844,858,872,877,886,891,892,894,900,911,914,918,919,925,928,935,936,937,947,957,972,973,992,999,1010,1019,1023,1026,1035,1044,1046,1063,1069,1078,1082,1090,1098,1114,1119,1123,1128,1130,1142,1147,1148,1151,1152,1157,1158,1166,1169,1178,1183,1204,1208,1220,1232,1236,1242,1244,1246,1254,1258,1260,1271,1275,1282,1284,1286,1290,1293,1294,1299,1302,1312,1314,1317,1326,1345,1349,1358,1361,1362,1375,1376,1378,1379,1380,1386,1390,1392,1400,1401,1404,1406,1429,1433,1437,1462,1472,1483,1489,1499,1500,1501,1502,1504,1542,1543,1544,1548,1555,1563,1581,1586,1591,1594,1597,1599);



# generateRandomNumbers();
function generateRandomNumbers() {
    
$rand = array();
    for (
$i=0;$i<2510;$i++) {
        
$r rand(1,1599);
        if (!
in_array($r$rand)) {
            
$rand[] = $r;
        }
    }
    
sort($rand);
    echo 
join(',',$rand);
}