Okay, I\'m still fairly new to Java. We\'ve been given an assisgnment to create a game where you have to guess a random integer that the computer had generated. The problem
You're almost there. Just add 1 to the result:
int randomInt = (int)d + 1;
This will "shift" your range to 1 - 100 instead of 0 - 99.
1 - 100
0 - 99