added getLocation at random order