Beispiel #1
0
        public string generateCultureName()
        {
            result.Clear();
            result.Append(prefix.GetRandom());

            //result.Append(UtilsMy.FirstLetterToUpper(RandWord.Models.RandomWordGenerator.Word(Rand.random2.Next(3) + 1, true)));
            result.Append(UtilsMy.FirstLetterToUpper(ProvinceNameGenerator.generateWord(Rand.Get.Next(3, 5))));
            result.Append(postfix.GetRandom());

            return(result.ToString());
        }
Beispiel #2
0
        public string generateProvinceName()
        {
            result.Clear();
            result.Append(prefix.GetRandom());
            if (Rand.Get.Next(3) == 1)
            {
                result.Append(generateWord(Rand.Get.Next(2, 5)));
            }
            else
            {
                result.Append(generateWord(Rand.Get.Next(3, 5)));
            }
            result.Append(postfix.GetRandom());

            return(UtilsMy.FirstLetterToUpper(result.ToString()));
        }