import java.util.Random;
import java.util.Random;
Random;
// 2. Constructs an array of random numbers (min 0 - max 24) with array size
count
public Numbers(int count) {
Random random = new Random();
numbArray = new int[count];
for (int i = 0; i < count; i++) {
numbArray[i] = random.nextInt(25);
}
}
// 7. Returns the index number of the first instance of int lookFor, -1 if not
found
public int linearSearch(int lookFor) {
for (int i = 0; i < numbArray.length; i++) {
if (numbArray[i] == lookFor) {
return i;
}
}
return -1;
}