Created
September 22, 2019 15:43
-
-
Save spech66/86ad208e36adfecf2fc6b1a988856a83 to your computer and use it in GitHub Desktop.
PowerShell roll dice (1D6, 1D20)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For D6 | |
Get-Random -Minimum 1 -Maximum 7 | |
# or | |
1..6 | Get-Random | |
# For D20 | |
Get-Random -Minimum 1 -Maximum 21 | |
# or | |
1..20 | Get-Random |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment