示例#1
0
 public Repeat(int minCount_0, int maxCount, int[] itemWeights, Pick item) : base(item)
 {
     this.minCount = 0;
     weightedIndex = new Pick.WeightedIndex(minCount_0).Add(maxCount - minCount_0
                                                            + 1, itemWeights);
 }
示例#2
0
 // keep private
 public Alternation()
 {
     this.weightedIndex = new Pick.WeightedIndex(0);
 }