The below program will help to do so
using System;
using System.Linq;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var str = GenerateContinuousCode();
}
public static string GenerateContinuousCode()
{
return new string(
Enumerable.Repeat("0123456789", 6)
.Select(s => s[new Random().Next(s.Length)])
.ToArray());
}
}
}