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

31st Mar 2018, 2:34 AM
Jaren Dogan
Jaren Dogan - avatar
3 Answers
+ 2
zc.nextInt((21-10)+1)+10
31st Mar 2018, 2:38 AM
Ariela
Ariela - avatar
+ 2
Use that instead
31st Mar 2018, 2:38 AM
Ariela
Ariela - avatar
0
thank you very much, have a great day and good luck
31st Mar 2018, 2:43 AM
Jaren Dogan
Jaren Dogan - avatar