Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@money4honey
Created August 6, 2015 18:11
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 money4honey/ceda15ded0d4110ebc10 to your computer and use it in GitHub Desktop.
Save money4honey/ceda15ded0d4110ebc10 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace myClasses
{
public class Spintax
{
public static string getVariant(string text, char delimiter) {
Random random = new Random();
string[] array = text.Split(delimiter);
return array[random.Next(array.Length - 1)];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment