Anyone knows how to predict numbers with array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Anyone knows how to predict numbers with array?

for my 7 digit jackpot games ;)

12th Jul 2017, 10:37 AM
Noormeissa Sapar
Noormeissa Sapar - avatar
1 Answer
+ 14
Use the java.util.Random class for this purpose. It's better than the Math.random() method. Go through this for the reference : https://stackoverflow.com/questions/8065532/how-to-randomly-pick-an-element-from-an-array
12th Jul 2017, 10:46 AM
Dev
Dev - avatar