The below code will do this
using System;
using System.Linq;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var str = GetTenDigitRandomNumbers();
}
public static string GetTenDigitRandomNumbers()
{
Random generator = new Random();
return generator.Next(0, 1000000).ToString("D10");
}
}
}