> class test > { > > static void Main(string[] args) > { > string pw1, pw2; > > int dups = 0; > > dups = 0; > > pw1 = Michel4.GeneratePasswordAlpha(6); > for (int i = 10000000 * 10 ; --i != 0; ) // times 10 compared to yesterday > { > pw2 = Michel4.GeneratePasswordAlpha(6); > > if (pw1 == pw2) > { > Console.WriteLine("{0} {1} {2}", pw1, pw2, pw1 == pw2); > dups++; > } > > pw1 = pw2; > } > > > Console.WriteLine("Michel4 dups = {0}", dups); > > Console.ReadLine(); > > } > > } > > public class Michel4 > { > const string chars = "abcedfghijklmnopqrstuvwxyz0123456789"; > static readonly int charsLength = chars.Length; > static Random rnd = new Random(); > > public static string GeneratePasswordAlpha(int tnLength) > { > int i; > StringBuilder sb = new StringBuilder(tnLength); > > for (i = tnLength; --i >= 0; ) > sb.Append(chars[rnd.Next(charsLength)]); > return sb.ToString(); > > } > } >Boy. Michel can have the busiest web site in the world by the time you've finished (G)