Question: 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)

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; What range of values can each variable (a, b, c, d, and e) have?

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!