Dice Rolling Simulator
This is a simple Python program that simulates rolling a 6-sided dice.
This is a simple Python program that simulates rolling a 6-sided dice.
This is a simple Python program that simulates rolling a 6-sided dice.
python dice_roller.py.The script consists of two main functions:
roll_dice(): This function generates a random number between 1 and 6, simulating the roll of a dice, and prints the result.
main(): This function presents a menu to the user with two options:
It then takes user input and calls the appropriate function based on the choice made.
This script requires Python to be installed on your system. It also uses the random module, which is a standard library in Python and does not require any additional installation.
Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or create a pull request on the GitHub repository.
Yes — it is a pure-stdlib console program using only the random module and input/print.