Esempio n. 1
0
 public StringRandomGenerator(int minLength, int maxLength, CharacterType charType, bool padRight)
 {
     _min      = minLength;
     _max      = maxLength;
     _chars    = RandomGeneratorHelper.GetChars(charType);
     _padRight = padRight;
 }
Esempio n. 2
0
        private char GetRandomChar()
        {
            int rnd = RandomGeneratorHelper.GetRandomInteger(0, _chars.GetUpperBound(0) + 1);

            return(_chars[rnd]);
        }
Esempio n. 3
0
 private int GetRandomLength()
 {
     return(RandomGeneratorHelper.GetRandomInteger(_min, _max + 1));
 }