Consider the following code: Random rand = new Random(); int a = rand.nextInt(100); int b = rand.nextInt(20)

Question:

Consider the following code:

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?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: