static readonly Random _random = new System.Random(Environment.TickCount);
const string dictionary = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklpmnopqrstuvwxyz0123456789!@#$%^&*()_+-=";
static string GetPassword(int length)
.OrderBy( a => _random.NextDouble() )
static string GetPassword(int length, int maxRepeats)
Enumerable.Range(0, maxRepeats)
.SelectMany( i => dictionary)
.OrderBy( a => _random.NextDouble() )
public static void Main()