Пример #1
0
            public string GetBothUpperAndLower(int length)
            {
                var pwd = "";

                for (var i = 0; i < length; i++)
                {
                    if (_randomNumberGenerator.GetRandomIntegerBetween(new Range(0, 9)) % 2 == 0)
                    {
                        pwd += _randomNumberGenerator.GetRandomLetterUpper();
                    }
                    else
                    {
                        pwd += _randomNumberGenerator.GetRandomLetterLower();
                    }
                }

                return(pwd);
            }