Fixed potential bug at GetRandomPosition();