This outputs
'00000'
as first number and
'5yc1r'
as 10000000
th number
static void Main(string[] args)
{
const int BASE=36;
char[] base36 = {'0','1','2','3','4','5','6','7','8','9','a','b',
'c','d', 'e','f','g','h','i','j','k','l','m','n',
'o','p','q','r','s','t','u','v','w','x','y','z'};
int[] idx = { 0, 0, 0, 0, 0 };
for (int n = 0; n < 10000000; ++n)
{
string s = string.Empty + base36[idx[4]]+ base36[idx[3]] + base36[idx[2]] + base36[idx[1]] + base36[idx[0]];
Console.WriteLine(s);
++idx[0];
if (idx[0] == BASE)
{
idx[0] = 0;
++idx[1];
if (idx[1] == BASE)
{
idx[1] = 0;
++idx[2];
if (idx[2] == BASE)
{
idx[2] = 0;
++idx[3];
if (idx[3] == BASE)
{
idx[3] = 0;
++idx[4];
}
}
}
}
}
}