jasonwyz98
Programmer
Hello
I need to generate some random #s within certain range using java.utils.Random
ex. generate random #s with 500-1000
when i do random(object).nextInt(1000) it generates all #s between 0-1000.
So how do i generate #s between 500-1000 only.
thanks
I need to generate some random #s within certain range using java.utils.Random
ex. generate random #s with 500-1000
when i do random(object).nextInt(1000) it generates all #s between 0-1000.
So how do i generate #s between 500-1000 only.
thanks