I am in need of generating a random string with spaces and mixedCase.
This is all I got so far:
///
/// The Typing monkey gen
You could start with an array of all the characters you'll allow
private static readonly char[] ALLOWED = new [] { 'a', 'b', 'c' ... '9' };
And then:
{
...
for (int i = 0; i < size; i++)
{
ch = ALLOWED[random.NextInt(0, ALLOWED.Length)];
builder.Append(ch);
}
...
return builder.ToString();
}
return builder.ToString();
I paraphrase, of course. I'm not certain about the syntax on random.NextInt(), but intelisense aught to help.