Question: Java Problem 1) Method that generates 100 random Unique numbers (No Duplicate Values) and stores them in an array of int primitive type. //RandomIntValues() creates
Java Problem
1) Method that generates 100 random "Unique" numbers (No Duplicate Values) and stores them in an array of int primitive type.
//RandomIntValues() creates and returns an array of unique 100 int values, between the range of 0 to 100.
public static int [] RandomIntValues() {
int Numbers[] = new int[100];
Random randNum = new Random();
//Add code
}
2) Method that generates 100 random "Unique" numbers (No Duplicate Values) and stores them in an array of integer reference type.
//RandomIntegerValues() creates and returns an array of unique 100 integer values, between the range of 0 to 100.
public static Integer [] RandomIntegerValues(){
//Add code
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
