/Dice

Roll the Dice and Play with Probability in PowerShell - ⚀ ⚅

Primary LanguagePowerShellMIT LicenseMIT

Dice
❤️

Dice

Dice is a little PowerShell module that helps you take a chance.

It is meant to be a useful and educational module, primarily to help anyone understand independent probability.

Get-Dice # List the dice that currently exist
Read-Dice # Read the current values of the dice
Read-Dice -Sides 6 -RollCount 2 # Roll a 6-sided die twice
Read-Dice -Sides 2 -RollCount 10 # Flip a coin 10 times.
Read-Dice -Sides 20 -RollCount 1kb # Roll a D20 1024 times.

Dice in Docker

Dice creates a Docker image to let you roll the dice in a service.

# pull down the latest image
docker pull ghcr.io/startautomating/dice

# Run it locally and publish it to 6161
docker run --interactive --tty --publish 6161:80 ghcr.io/startautomating/dice