Question: a) e O a O C Consider the following code: Random rand = new Random(); int n = rand.nextInt(7) + 4; What range of
a) e O a O C Consider the following code: Random rand = new Random(); int n = rand.nextInt(7) + 4; What range of values can variable n have? a. Between 4 and 10 inclusive b. Between 0 and 6 inclusive c. Between 4 and 10 not inclusive d. Between 0 and 6 not inclusive Leave blank
Step by Step Solution
There are 3 Steps involved in it
As we know that javautilRandomnextInt returns a random number If the RandomnextIntnie randnextInt in ... View full answer
Get step-by-step solutions from verified subject matter experts
