Originally posted by Somkiat Puisungnoen:
Mmm, Pui, I guess you forgot to have a look at the API that the parameter is exclusive.. So 50 won't be included in the randomized numbers... Instead of
no = r.nextInt(50);, it should be
no = r.nextInt(51); so that 50 is included in the randomized numbers...
Am I a bug fixer? :roll: Anyway, I hope the original poster gets what he wants correctly...
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0