Generate Random Code In C#
private void generate()
{
var chars = "0123456789";
var stringChars = new char[6];
var random = new Random();
for (int i = 0; i < stringChars.Length; i++)
{
stringChars[i] = chars[random.Next(chars.Length)];
}
var finalString = new String(stringChars);
ab = finalString.ToString();
// lblOutlet_Code.Text = finalString.ToString();
}
Saturday, 23 January 2016
Generate Random Code In C#
About asprockers
Templatesyard is a blogger resources site is a provider of high quality blogger template with premium looking layout and robust design. The main mission of templatesyard is to provide the best quality blogger templates.
Related Posts:
Windows
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment