I'm trying to make a program for my dungeons and dragons game that will generate a random int between 0 and 100 with each int (0 to 100) assigned to a unique print statement. Also, some print statements may be assigned to several ints. For example, 75 through 80 could be assigned to one print statement.
I'm having trouble with how to start on this, as the only way I know how to do this is to use several if else
statements. I'm just asking for ideas here and its been a while since I've worked with java so please bare with me..
The output statement would look something like this:
Rolling d100...
76
Flame Sword +1
Roll again? (y/n)
Aucun commentaire:
Enregistrer un commentaire