MBGen.WordList.RandomizeDistWeights C# (CSharp) Method

RandomizeDistWeights() public method

public RandomizeDistWeights ( LongRandom rand, int factor ) : void
rand LongRandom
factor int
return void
        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;
                }
            }
        }