Archive for the "C#" Category

C#: String Extensions – Jumble

Was bored so created a string extension in C# to jumble up a input string public static string Jumble(this string s) { if (!string.IsNullOrEmpty(s)) { ArrayList al = new ArrayList(); foreach (char c in s.ToCharArray()) { al.Add(c); } string output = “”; Random rand = new Random(); int counter; do { counter = (int)(al.Count * [...]