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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!