hi,
help to generate string data randamlly, i have for numbers, i did not got any idea for string
just help me
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Binu SubiPosted Mar 20, 2006, 3:02 PM
It is easy as
System.Guid.NewGuid.ToString()
Cheers!
Craig MurphyPosted Mar 19, 2006, 5:33 PM
string s = ""; int n; char c; Random r = new Random(); for (int i = 0; i < 10; i++)
{
n = r.Next(65, 65 + 26);
c = System.
Convert.ToChar(n);s = s + c;
}
//listBox1.Items.Add(s);