posted 8 years ago
so you have a known number of digits, be that N. Just use the first 2 out of that N digits as an increment, then the rest N-2 digits are random.
For example you want to generate 89 random numbers of 6 digits, then you generate 89 numbers of 4 digits be those n1, n2, .., n99.
Your result would be:
10n1
11n2
12n3
....
99n99
Thus you get 89 distinct, non sequential yet random numbers.