Dice Rolling Procedure
Category:Dates and Math
Version Compatibility: Visual Basic 6
Used as part of my math aids program, this can be used as a dice roller for the Dungeons and Dragons, White Wolf pen and paper games, craps or any game that needs dice. Add a listBox control for displaying the roll results, a textBox control so you can dictate the number of rolls to perform and a textBox control to dictate how many sides the dice has. Create a command button to roll the dice and roll away.
Instructions: Copy the declarations and code below and paste directly into your VB project.