Question: Write code that generates a random odd integer (not divisible by 2) between 50 and 99 inclusive. What are the values of the sub-expressions labeled
Write code that generates a random odd integer (not divisible by 2) between 50 and 99 inclusive. What are the values of the sub-expressions labeled A, B, and C below. Random rand = new Random(): int n = rand.nextInt(A) B + C; A-25, B-2, C-51 A =50, B =1, C-49 A= 25 B=2, C=1 A=49, B=2, C=1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
