Example #1
0
 public FromWeightedList(ICollection <T> choices, Func <T, double> weightExtractor, Random?generator = default) : base(gen => Brandom.FromWeightedList(gen, choices, weightExtractor), generator)
 {
 }
Example #2
0
 public FromWeightedList(IDictionary <T, int> weightedChoices, Random?generator = default) : base(gen => Brandom.FromWeightedList(gen, weightedChoices), generator)
 {
 }