protected string GetRandomString(int numChars)
{
StringBuilder sb = new StringBuilder();
Random rand = new Random();
for (int i = 0; i < numChars; i++)
{
sb.Append(Convert.ToChar(rand.Next(32, 127)));
}
return (sb.ToString());
}
Wednesday, July 28, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment