Skip to content

Instantly share code, notes, and snippets.

@donnaken15
Created May 30, 2019 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donnaken15/ed73ee2fed4ace255aaff6ee645af943 to your computer and use it in GitHub Desktop.
Save donnaken15/ed73ee2fed4ace255aaff6ee645af943 to your computer and use it in GitHub Desktop.
Based on GameMaker's choose. Adding this for a future C# library.
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