33.6k views
1 vote
Which line of code will generate a random integer between 7 and 77?

rng.nextInt(7, 77);
rng.nextInt(77) + 7;
rng.nextInt(71) + 7;
rng.nextInt(77 + 7);

User Shaun
by
5.1k points

1 Answer

3 votes
Second one, but i am not sure. I think i recall correctly
User Simon Willison
by
6.1k points