I'm not very used to this language. I want to get a number between 1 & 200, then compare it to other numbers I have stored in a list. I'm not really sure how to do that without a lot of code. I'm sure there is an easier way.
This is the way I'm used to doing it.
int iNum = d20(10);
while (iNum [is one of these delimited numbers] 2.42.65.69.103) //if iNum is one of those numbers
{
iNum = d20(10); //reroll until iNum is not one of the numbers
}
Any suggestions? Thanks!
Modifié par AmbrosiaPW, 30 avril 2011 - 06:12 .





Retour en haut






