int getNumber() { if (min == max) return min; int range = max - min; return (int) (Math.random() * range) + min; }
public static RescueObject randomLocation(RescueObject[] possible) { return possible[(int) (Math.random() * possible.length)]; }