public static int GetNumber(this RNGCryptoServiceProvider rng, int min, int max)
 {
     // Return random integer between min and max (excluding max).
     return((int)(min + rng.GetNumber() * (max - min)));
 }