string chars = "ABCDEFGHIJKLMNOPRSTUVYZX0123456789";
int i;
string r = "";
Random rnd = new Random(DateTime.Now.Millisecond);
for (int j = 1; j<=10; j++)
{
i = Convert.ToInt32( rnd.Next(0,33) );
r += chars.Substring(i,1);
}
MessageBox.Show("NuM : " + r);
Aggiungi un commento