for a tool that I am writing I need a "random text" generator. I want to allow the user to be able to choose from premade strings like these:
const string baseCollection = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
const string numbers = "0123456789";
const string specialChars = "°^!\"§$%&/{([)]=}?\\`´*+~'#,;.:-_><|";
const string germanAddition = "ÄÖÜäöü";
const string frenchAddition = "éàèùâêîôûäëïü眫»";
const string russianAddition = " бвгджзклмнпрстфхцчшщйаэыуояеёюиьъ";
Which in terms should be used to run this method.
public string RanText(int length, ???)
{
string charCollectionString = "";
foreach(string str in charCollectionStrings) {
charCollectionString += str;
}
//stuff
return finalString;
}
I have thought of using an Enum but those do not allow Strings. What would be the cleanest way of creating a range of possible arguments?