Answer the question
In order to leave comments, you need to log in
Outputting average double number in textBox?
There are two nums, namely:
double num1 = double.Parse(this.dataGridView1.Rows[acID].Cells[3].Value.ToString());
double num2 = double.Parse(this.textBox3.Text.ToString().Trim());
Random z = new Random();
textBox3.Text = z.Next(num1, num2).ToString();
Answer the question
In order to leave comments, you need to log in
var gridNum = ...from grid
var rnd = new Random();
var prev = double.Parse(textBox3.Text);
var next = prev + ((gridNum - prev) * rnd.NextDouble());
textBox3.Text = next.ToString();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question