public void RandomizeDistWeights(LongRandom rand, int factor) { for (int i = 0; i < this.DistWeights.Length; i++) { if (rand.Next(0, factor * 3 + 1) == 0) { this.DistWeights[i] = rand.Next(1, 20) * factor; } else { this.DistWeights[i] = 0; } } }