Пример #1
0
 public void AddSelection(ValueGenerator valueGenerator, double weight)
 {
     _selections.Add(new WeightedSelection(valueGenerator, weight));
     _totalWeight += weight;
 }
Пример #2
0
 public WeightedSelection(ValueGenerator valueGenerator, double weight)
 {
     ValueGenerator = valueGenerator;
     Weight         = weight;
 }