Code:int sec = cal.get(Calendar.SECOND);
int sec2 = sec / 3;
int sec3 = Math.round(sec2);
ok i got a number 1-20 im gunna use as a seed to generate 10,000 random numbers 1-20. i need a formula to put it through, any suggestions?
Printable View
Code:int sec = cal.get(Calendar.SECOND);
int sec2 = sec / 3;
int sec3 = Math.round(sec2);
ok i got a number 1-20 im gunna use as a seed to generate 10,000 random numbers 1-20. i need a formula to put it through, any suggestions?
Hello carlos123
If you don't want to use the Random class then try Math.random(). If this is not what you want then your problem is mathematical and not Java related. See this site :Pseudorandom series
Hope this helped. :p
do you understand what i need to do?
I am sorry if my reply did not help, but please try to be patient with me. :(Quote:
Originally Posted by carlos123
Ok, but i still need help, thanks.