CJCoding With Joseph
15per day
← Back to Question List

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

Topics:
Java Quiz #17

Random Integer Range

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;