Question: Which statement assigns a random integer from 13 to 27 inclusive to the variable rand? int rand = (int) (Math.random() * 14) + 27; int
Which statement assigns a random integer from 13 to 27 inclusive to the variable rand?
-
int rand = (int) (Math.random() * 14) + 27;
int rand = (int) (Math.random() * 14) + 27;
-
int rand = (int) (Math.random() * 13) + 27;
int rand = (int) (Math.random() * 13) + 27;
-
int rand = (int) (Math.random() * 15) + 13;
int rand = (int) (Math.random() * 15) + 13;
-
int rand = (int) (Math.random() * 14) + 13;
int rand = (int) (Math.random() * 14) + 13;
-
int rand = (int) (Math.random() * 27) +13;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
