Created
November 28, 2017 08:49
-
-
Save markwragg/2bf9af5dd5fb3aa2f62b67b2ce5add7b to your computer and use it in GitHub Desktop.
PowerShell Function for deciding between two choices. E.g Get-CoinFlip -Heads Coffee -Tails Tea
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
Function Get-CoinFlip { | |
Param( | |
$Heads = 'Heads', | |
$Tails = 'Tails' | |
) | |
Get-Random $Heads,$Tails | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment