Question: Consider the following code. What range of values can each variable ( a , b , c , d , and e ) have? Specify

Consider the following code. What range of values can each variable (a, b, c, d, and e) have? Specify ranges with a dash i.e."1-10" and separate multiple numbers with commas i.e."1,2,3,4,5,etc..."
Random rand = new Random();
int a = rand.nextInt(100);
int b = rand.nextInt(20)+50;
int c = rand.nextInt(20+50);
int d = rand.nextInt(100)-20;
int e = rand.nextInt(10)*4;

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 Programming Questions!