jaytea commented on a Page, Ultima Dice 1.0  -  Dec 29, 2010

i think you mean to use 'rand() % D + 1' and to assign that result to a different variable than D, since you need to retain user input.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.