public string RandomString(int randomNumber) { return "S" + randomNumber.ToString(); }
private void button1_Click(object sender, EventArgs e) { Random rn = new Random(); string str="S"+rn.Next().ToString(); MessageBox.Show(str); }
Guid randomNum= System.Guid.NewGuid();
String finalNumber="S" + YourRandomNumber.toString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)