public static string RandomLettersAndNumbers(int length, bool initialJumble = true, int repeatJumble = 16) { string returnString, randomLetters, randomNumbers; int[] amounts = KoiMath.GetHalves(length); randomLetters = EasyRandom.RandomLetters(amounts[0]); randomNumbers = EasyRandom.RandomLetters(amounts[1]); returnString = randomLetters + randomNumbers; if (initialJumble == true) { returnString = Jumbler.Jumble(returnString, 1); } if (repeatJumble > 0) { returnString = Jumbler.Jumble(returnString, repeatJumble); } return(returnString); }
public static string RandomJumbledLetters(int amount = 32, int jumbleTimes = 16) { return(Jumbler.Jumble(RandomLetters(amount), jumbleTimes)); }
public static int RandomJumbledNumbers(int amount = 32, int jumbleTimes = 16) { return(int.Parse(Jumbler.Jumble(RandomNumbers(amount).ToString(), jumbleTimes))); }