0
Why are the numbers I printed by a random array generator not between a range I want.
the range I want the numbers between is 10 and 20, this code is for the black box challenge. https://code.sololearn.com/claMsRZMJYlT/?ref=app
3 Answers
+ 2
zc.nextInt((21-10)+1)+10
+ 2
Use that instead
0
thank you very much, have a great day and good luck