Click or drag to resize
RandomChance Class
A static class of extension methods for generating random boolean values based on various probabilities.
Inheritance Hierarchy
SystemObject
  Experilous.MakeItRandomRandomChance

Namespace: Experilous.MakeItRandom
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static class RandomChance
Methods
  NameDescription
Public methodStatic memberChance(IRandom)
Returns a random bool with exacty a half and half chance of being true or false.
Public methodStatic memberChance(IRandom, Double, Double)
Returns a random bool where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberChance(IRandom, Int32, Int32)
Returns a random bool where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberChance(IRandom, Int64, Int64)
Returns a random bool where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberChance(IRandom, Single, Single)
Returns a random bool where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberChance(IRandom, UInt32, UInt32)
Returns a random bool where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberChance(IRandom, UInt64, UInt64)
Returns a random bool where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberMakeChanceGenerator(IRandom)
Returns a boolean generator which will produce random boolean values with exacty a half and half chance of being true or false.
Public methodStatic memberMakeChanceGenerator(IRandom, Double, Double)
Returns a boolean generator which will produce random boolean values where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberMakeChanceGenerator(IRandom, Int32, Int32)
Returns a boolean generator which will produce random boolean values where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberMakeChanceGenerator(IRandom, Int64, Int64)
Returns a boolean generator which will produce random boolean values where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberMakeChanceGenerator(IRandom, Single, Single)
Returns a boolean generator which will produce random boolean values where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberMakeChanceGenerator(IRandom, UInt32, UInt32)
Returns a boolean generator which will produce random boolean values where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberMakeChanceGenerator(IRandom, UInt64, UInt64)
Returns a boolean generator which will produce random boolean values where on average the ratio of true results to false results will be ratioTrue:ratioFalse.
Public methodStatic memberMakeProbabilityGenerator(IRandom, Double)
Returns a boolean generator which will produce random boolean values where the probability of a true result is set by the parameter probability.
Public methodStatic memberMakeProbabilityGenerator(IRandom, Int32)
Returns a boolean generator which will produce random boolean values where the probability of a true result is numerator/2^31.
Public methodStatic memberMakeProbabilityGenerator(IRandom, Int64)
Returns a boolean generator which will produce random boolean values where the probability of a true result is numerator/2^63.
Public methodStatic memberMakeProbabilityGenerator(IRandom, Single)
Returns a boolean generator which will produce random boolean values where the probability of a true result is set by the parameter probability.
Public methodStatic memberMakeProbabilityGenerator(IRandom, UInt32)
Returns a boolean generator which will produce random boolean values where the probability of a true result is numerator/2^32.
Public methodStatic memberMakeProbabilityGenerator(IRandom, UInt64)
Returns a boolean generator which will produce random boolean values where the probability of a true result is numerator/2^64.
Public methodStatic memberMakeProbabilityGenerator(IRandom, Double, Double)
Returns a boolean generator which will produce random boolean values where the probability of a true result is numerator/denominator.
Public methodStatic memberMakeProbabilityGenerator(IRandom, Int32, Int32)
Returns a boolean generator which will produce random boolean values where the probability of a true result is numerator/denominator.
Public methodStatic memberMakeProbabilityGenerator(IRandom, Int64, Int64)
Returns a boolean generator which will produce random boolean values where the probability of a true result is numerator/denominator.
Public methodStatic memberMakeProbabilityGenerator(IRandom, Single, Single)
Returns a boolean generator which will produce random boolean values where the probability of a true result is numerator/denominator.
Public methodStatic memberMakeProbabilityGenerator(IRandom, UInt32, UInt32)
Returns a boolean generator which will produce random boolean values where the probability of a true result is numerator/denominator.
Public methodStatic memberMakeProbabilityGenerator(IRandom, UInt64, UInt64)
Returns a boolean generator which will produce random boolean values where the probability of a true result is numerator/denominator.
Public methodStatic memberProbability(IRandom, Double)
Returns a random bool where the probability of a true result is set by the parameter probability.
Public methodStatic memberProbability(IRandom, Int32)
Returns a random bool where the probability of a true result is numerator/2^31.
Public methodStatic memberProbability(IRandom, Int64)
Returns a random bool where the probability of a true result is numerator/2^63.
Public methodStatic memberProbability(IRandom, Single)
Returns a random bool where the probability of a true result is set by the parameter probability.
Public methodStatic memberProbability(IRandom, UInt32)
Returns a random bool where the probability of a true result is numerator/2^32.
Public methodStatic memberProbability(IRandom, UInt64)
Returns a random bool where the probability of a true result is numerator/2^64.
Public methodStatic memberProbability(IRandom, Double, Double)
Returns a random bool where the probability of a true result is numerator/denominator.
Public methodStatic memberProbability(IRandom, Int32, Int32)
Returns a random bool where the probability of a true result is numerator/denominator.
Public methodStatic memberProbability(IRandom, Int64, Int64)
Returns a random bool where the probability of a true result is numerator/denominator.
Public methodStatic memberProbability(IRandom, Single, Single)
Returns a random bool where the probability of a true result is numerator/denominator.
Public methodStatic memberProbability(IRandom, UInt32, UInt32)
Returns a random bool where the probability of a true result is numerator/denominator.
Public methodStatic memberProbability(IRandom, UInt64, UInt64)
Returns a random bool where the probability of a true result is numerator/denominator.
Top
See Also