This question already has an answer here:
- Best way to randomize an array with .NET 18 answers
I'm new to C# so don't blame me for my stupidity. I'm working on an application that should randomize a word and give it's lenght for example you write a word "Line" and it gives you "iLen". Currently I'm sure that only this part works:
private void lenght_Click(object sender, EventArgs e)
{
String word = textBox1.Text;
int x = word.Length;
MessageBox.Show(x.ToString());
}
private void randomize_Click(object sender, EventArgs e)
{
String word = textBox1.Text;
int x = word.Length;
}
I tried a lot but most of it just crashed the application so at the moment I would like to know what does the Text.ToCharArray does and I would love additional support. So I just need a method that takes your string randomizes it gives you another string just with mashed/randomized characters. Now I will leave the question for 5 - 7 hours to get more answers later I will review them all and give rep to the working ones. Thank you for support! I have read all your reviews yet I'm late sorry for that now it's time to check everything.