https://github.com/startautomating/dice
Roll the Dice and Play with Probability in PowerShell - ⚀ ⚅
https://github.com/startautomating/dice
Last synced: 10 months ago
JSON representation
Roll the Dice and Play with Probability in PowerShell - ⚀ ⚅
- Host: GitHub
- URL: https://github.com/startautomating/dice
- Owner: StartAutomating
- License: mit
- Created: 2024-08-10T06:21:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-10T19:19:48.000Z (over 1 year ago)
- Last Synced: 2025-04-02T11:49:52.399Z (10 months ago)
- Language: PowerShell
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## 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.
~~~PowerShell
Get-Dice # List the dice that currently exist
~~~
~~~PowerShell
Read-Dice # Read the current values of the dice
~~~
~~~PowerShell
Read-Dice -Sides 6 -RollCount 2 # Roll a 6-sided die twice
~~~
~~~PowerShell
Read-Dice -Sides 2 -RollCount 10 # Flip a coin 10 times.
~~~
~~~PowerShell
Read-Dice -Sides 20 -RollCount 1kb # Roll a D20 1024 times.
~~~
## Dice in Docker
Dice creates a [Docker image](https://github.com/users/StartAutomating/packages/container/package/dice) to let you roll the dice in a service.
~~~PowerShell
# 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
~~~