public RandFloatBox_Between(float na, float nb, RandFloatSource s) : base(s) { a = na; b = nb; }
public RandVectorI2Source(RandFloatSource s) { source = s; }
public RandFloatBox(RandFloatSource s) { source = s; }
public RouletteWheel(RandFloatSource s, params KeyValuePair <T, float>[] i) : this(s, (IEnumerable <KeyValuePair <T, float> >)i) { }
public RouletteWheel(RandFloatSource s, IEnumerable <KeyValuePair <T, float> > i) : this(s, new Roulette <T>(i)) { }
public RouletteWheel(RandFloatSource s, Roulette <T> r) { roulette = r; float_source = s; }
public RandChanceSource(RandFloatSource s) { source = s; }
static public T PickRandom <T>(this IList <T> item, Operation <double, T> operation, RandFloatSource source) { double total_cost = item.GetCost(operation); return(item.GetElementForCost(source.GetBetween(0.0f, (float)total_cost), BoundType.Below, operation)); }