Created
May 30, 2019 22:04
-
-
Save donnaken15/ed73ee2fed4ace255aaff6ee645af943 to your computer and use it in GitHub Desktop.
Based on GameMaker's choose. Adding this for a future C# library.
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
static object choose(params object[] choices) | |
{ | |
return choices[random.Next(0, choices.Length)]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment