¡@

Home 

java Programming Glossary: drawnum

Creating random numbers with no duplicates

http://stackoverflow.com/questions/4040001/creating-random-numbers-with-no-duplicates

MAX has a value of 20 Thanks. int MAX 5 for i 1 i MAX i drawNum 1 int Math.random MAX 1 while drawNum 2 drawNum 1 drawNum 2.. 5 for i 1 i MAX i drawNum 1 int Math.random MAX 1 while drawNum 2 drawNum 1 drawNum 2 int Math.random MAX 1 while drawNum.. 1 i MAX i drawNum 1 int Math.random MAX 1 while drawNum 2 drawNum 1 drawNum 2 int Math.random MAX 1 while drawNum 3 drawNum..