new randomarea = random(nъmero);switch (randomarea) { case 0: IsPlayerInArea case 1: IsPlayerInArea ...etc