added randomPosition() to interface