Exemplo n.º 1
0
        private static int GetRandomNumber()
        {
            return(Math.Abs((int)mt.GetInt32() % chars.Length));

            /*
             *  var rng = new RNGCryptoServiceProvider();
             *  rng.GetBytes(bs);
             *  var num = BitConverter.ToInt32(bs, 0);
             *  return Math.Abs(num % chars.Length);
             */
        }