Ok, so I have been tasked with creating a number of robots that find their way out of a situation. i.e There is a hole in the wall and they have to find the way out no matter where they spawn.

I have created a loop that makes 10 different robots but they all spawn on the same place:
EscapeBot[] Karel = new EscapeBot[numOfRobots]; for (int i = 0; i < numOfRobots; i++) { Karel[i] = new EscapeBot(London, 1, 1, Direction.NORTH); Karel[i].escapeRoom(); Should I be declaring integers and then using math.random within the for loop where the co-ordinates and direction are?