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 static Random random = new Random((int)DateTime.Now.Ticks);//thanks to McAden
public long LongBetween(long maxValue, long minValue)
{
return (long)Math.Round(random.NextDouble() * (maxValue - minValue - 1)) + minValue;
}