CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Random Integer Range

Java quiz · Question 17
mediumMethods

Which line generates an integer from 30 to 45 inclusive using rng?

Code

1import java.util.Random;
2 
3Random rng = new Random();
4int num;