A simple Python command-line tool that simulates rolling a die. Customize the number of sides and how many times to roll.
- Choose number of sides (default: 6)
- Roll the die multiple times
- Input validation for safe execution
- Simple and clean terminal output
Make sure Python is installed on your system.
python dice_roller.pyFollow the prompts:
- Enter how many sides your die has (e.g., 6, 12, 20)
- Enter how many times you want to roll it
Dice Roller
Enter number of sides on the die (default 6): 12
How many times to roll? (default 1): 3
Roll 1: 7
Roll 2: 2
Roll 3: 11