I\'m using C# and I need to generate a random 10 digit number. So far, I\'ve only had luck finding examples indicating min maximum value. How would i go about generating a r
private void button1_Click(object sender, EventArgs e) { Random rand = new Random(); long randnum2 = (long)(rand.NextDouble() * 9000000000) + 1000000000; MessageBox.Show(randnum2.ToString()); }