using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static Random rand = new Random();
public static void Shuffle<T>(T[] array)
{
var random = rand;
for (int count = array.Length; count > 1; count--)
{
int randvar = random.Next(count);
var v = array[randvar];
array[randvar] = array[count - 1];
array[count - 1] = v;
}
}
static void Main()
{
{
char[] array = { 'a','b','c','d','e','f','g','h','i','j','k' };
Shuffle(array);
foreach (char value in array)
{
Console.Write(value);
}
Console.ReadLine();
}
}
}
}