Würfel

Von Henrik , 19 Juni 2026
Dokument
Würfel.txt (1.74 KB)

"Würfel" is a command line tool for simulating trhowing a dice. It has several flags which modify the dice's behavior:

  • the -h flag for help
  • the -s flag for setting the number of sides
  • the -l flag for setting the value of the lowest side
  • the -r flag for throwing the same dice several times
  • the -d flag for throwing the same dice several times with forced differnt outputs. useful, if you want to randomly select items from a list
  • the -c flag for customising your dice. You will be prompted to assign a value to each side individually.

The script is based on the python random library and argparse. It is available under Creative Commons Attributions-ShareAlike 4.0 Licence.