Is there a way to set the range for a random number generator and restrict one of the numbers within that range?
From ggc
For instance if my range was 1-6 but i wanted to exclude 4, would i need to add something else onto the line?
x=random.nextInt(5)+1...?;
- This page was last modified on 21 September 2008, at 23:10.
- This page has been accessed 203 times.
- Privacy policy
- About ggc
- Disclaimers
- Powered by MediaWiki!









