using System.Collections.Generic;
public static void Main()
for(int i = 0; i <iterations; ++i) {
public static void indices() {
int[] result = new int[n];
for(int i = 0; i < n; ++i)
var k = i == 0 ? 0 : result[i-1];
result[i] = rand.Next(k + dist, max - dist*(n-(i+1)));
foreach (var val in result)
Console.WriteLine("------------");