I would suggest adding one to the end of the generated number or else you wont ever reach 200.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
The best way is to add one to the end. You don't need the round method; A better choice would be the Math.ceil() method since it rounds up.
int i=(int)(101+((int)100*Math.random()));
or
int i=(int)(100+((int)101*Math.random()));
or
int i=(int)(100+((int)100*Math.random()))+1; //My choice
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20