Click or drag to resize
RandomSignOrZero Class
A static class of extension methods for generating random integers from the set { -1, 0, +1 }.
Inheritance Hierarchy
SystemObject
  Experilous.MakeItRandomRandomSignOrZero

Namespace: Experilous.MakeItRandom
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static class RandomSignOrZero
Methods
  NameDescription
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, Double)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is set by the parameter probability.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, Int32)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is numerator/2^31.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, Int64)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is numerator/2^63.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, Single)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is set by the parameter probability.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, UInt32)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is numerator/2^32.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, UInt64)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is numerator/2^64.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, Double, Double)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, Int32, Int32)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, Int64, Int64)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, Single, Single)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, UInt32, UInt32)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberMakeNegativeProbabilityGenerator(IRandom, UInt64, UInt64)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberMakeOneOrZeroGenerator(IRandom)
Returns an integer generator which will produce numbers with exacty a half and half chance of being positive one or zero.
Public methodStatic memberMakeOneOrZeroGenerator(IRandom, Double, Double)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberMakeOneOrZeroGenerator(IRandom, Int32, Int32)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberMakeOneOrZeroGenerator(IRandom, Int64, Int64)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberMakeOneOrZeroGenerator(IRandom, Single, Single)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberMakeOneOrZeroGenerator(IRandom, UInt32, UInt32)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberMakeOneOrZeroGenerator(IRandom, UInt64, UInt64)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, Double)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is set by the parameter probability.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, Int32)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is numerator/2^31.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, Int64)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is numerator/2^63.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, Single)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is set by the parameter probability.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, UInt32)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is numerator/2^32.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, UInt64)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is numerator/2^64.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, Double, Double)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, Int32, Int32)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, Int64, Int64)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, Single, Single)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, UInt32, UInt32)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakeOneProbabilityGenerator(IRandom, UInt64, UInt64)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, Double)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is set by the parameter probability.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, Int32)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is numerator/2^31.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, Int64)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is numerator/2^63.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, Single)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is set by the parameter probability.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, UInt32)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is numerator/2^32.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, UInt64)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is numerator/2^64.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, Double, Double)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, Int32, Int32)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, Int64, Int64)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, Single, Single)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, UInt32, UInt32)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakePositiveProbabilityGenerator(IRandom, UInt64, UInt64)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberMakeSignGenerator(IRandom)
Returns an integer generator which will produce numbers with exacty a half and half chance of being positive one or negative one.
Public methodStatic memberMakeSignGenerator(IRandom, Double, Double)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberMakeSignGenerator(IRandom, Int32, Int32)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberMakeSignGenerator(IRandom, Int64, Int64)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberMakeSignGenerator(IRandom, Single, Single)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberMakeSignGenerator(IRandom, UInt32, UInt32)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberMakeSignGenerator(IRandom, UInt64, UInt64)
Returns an integer generator which will produce random numbers from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberMakeSignOrZeroGenerator(IRandom)
Returns an integer generator which will produce numbers with exacty a one third chance each of being positive one, zero, or negative one.
Public methodStatic memberMakeSignOrZeroGenerator(IRandom, Double, Double, Double)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberMakeSignOrZeroGenerator(IRandom, Int32, Int32, Int32)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberMakeSignOrZeroGenerator(IRandom, Int64, Int64, Int64)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberMakeSignOrZeroGenerator(IRandom, Single, Single, Single)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberMakeSignOrZeroGenerator(IRandom, UInt32, UInt32, UInt32)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberMakeSignOrZeroGenerator(IRandom, UInt64, UInt64, UInt64)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, Double, Double)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is set by the parameter probabilityPositive and the probability of a positive one result is set by the parameter probabilityNegative. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, Int32, Int32)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/2^31 and the probability of a negative one result is numeratorNegative/2^31. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, Int64, Int64)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/2^63 and the probability of a negative one result is numeratorNegative/2^63. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, Single, Single)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is set by the parameter probabilityPositive and the probability of a positive one result is set by the parameter probabilityNegative. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, UInt32, UInt32)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/2^32 and the probability of a negative one result is numeratorNegative/2^32. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, UInt64, UInt64)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/2^64 and the probability of a negative one result is numeratorNegative/2^64. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, Double, Double, Double)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, Int32, Int32, Int32)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, Int64, Int64, Int64)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, Single, Single, Single)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, UInt32, UInt32, UInt32)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeSignProbabilityGenerator(IRandom, UInt64, UInt64, UInt64)
Returns an integer generator which will produce random numbers from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, Double)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is set by the parameter probability.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, Int32)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is numerator/2^31.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, Int64)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is numerator/2^63.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, Single)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is set by the parameter probability.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, UInt32)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is numerator/2^32.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, UInt64)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is numerator/2^64.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, Double, Double)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, Int32, Int32)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, Int64, Int64)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, Single, Single)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, UInt32, UInt32)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberMakeZeroProbabilityGenerator(IRandom, UInt64, UInt64)
Returns an integer generator which will produce random numbers from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberNegativeProbability(IRandom, Double)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is set by the parameter probability.
Public methodStatic memberNegativeProbability(IRandom, Int32)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is numerator/2^31.
Public methodStatic memberNegativeProbability(IRandom, Int64)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is numerator/2^63.
Public methodStatic memberNegativeProbability(IRandom, Single)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is set by the parameter probability.
Public methodStatic memberNegativeProbability(IRandom, UInt32)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is numerator/2^32.
Public methodStatic memberNegativeProbability(IRandom, UInt64)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is numerator/2^64.
Public methodStatic memberNegativeProbability(IRandom, Double, Double)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberNegativeProbability(IRandom, Int32, Int32)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberNegativeProbability(IRandom, Int64, Int64)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberNegativeProbability(IRandom, Single, Single)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberNegativeProbability(IRandom, UInt32, UInt32)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberNegativeProbability(IRandom, UInt64, UInt64)
Returns a random integer from the set { -1, +1 } where the probability of a negative one result is numerator/denominator.
Public methodStatic memberOneOrZero(IRandom)
Returns a random integer with exacty a half and half chance of being positive one or zero.
Public methodStatic memberOneOrZero(IRandom, Double, Double)
Returns a random integer from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberOneOrZero(IRandom, Int32, Int32)
Returns a random integer from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberOneOrZero(IRandom, Int64, Int64)
Returns a random integer from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberOneOrZero(IRandom, Single, Single)
Returns a random integer from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberOneOrZero(IRandom, UInt32, UInt32)
Returns a random integer from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberOneOrZero(IRandom, UInt64, UInt64)
Returns a random integer from the set { 0, +1 } where on average the ratio of positive one results to zero results will be ratioOne:ratioZero.
Public methodStatic memberOneProbability(IRandom, Double)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is set by the parameter probability.
Public methodStatic memberOneProbability(IRandom, Int32)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is numerator/2^31.
Public methodStatic memberOneProbability(IRandom, Int64)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is numerator/2^63.
Public methodStatic memberOneProbability(IRandom, Single)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is set by the parameter probability.
Public methodStatic memberOneProbability(IRandom, UInt32)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is numerator/2^32.
Public methodStatic memberOneProbability(IRandom, UInt64)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is numerator/2^64.
Public methodStatic memberOneProbability(IRandom, Double, Double)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberOneProbability(IRandom, Int32, Int32)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberOneProbability(IRandom, Int64, Int64)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberOneProbability(IRandom, Single, Single)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberOneProbability(IRandom, UInt32, UInt32)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberOneProbability(IRandom, UInt64, UInt64)
Returns a random integer from the set { 0, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberPositiveProbability(IRandom, Double)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is set by the parameter probability.
Public methodStatic memberPositiveProbability(IRandom, Int32)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is numerator/2^31.
Public methodStatic memberPositiveProbability(IRandom, Int64)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is numerator/2^63.
Public methodStatic memberPositiveProbability(IRandom, Single)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is set by the parameter probability.
Public methodStatic memberPositiveProbability(IRandom, UInt32)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is numerator/2^32.
Public methodStatic memberPositiveProbability(IRandom, UInt64)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is numerator/2^64.
Public methodStatic memberPositiveProbability(IRandom, Double, Double)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberPositiveProbability(IRandom, Int32, Int32)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberPositiveProbability(IRandom, Int64, Int64)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberPositiveProbability(IRandom, Single, Single)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberPositiveProbability(IRandom, UInt32, UInt32)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberPositiveProbability(IRandom, UInt64, UInt64)
Returns a random integer from the set { -1, +1 } where the probability of a positive one result is numerator/denominator.
Public methodStatic memberSign(IRandom)
Returns a random integer with exacty a half and half chance of being positive one or negative one.
Public methodStatic memberSign(IRandom, Double, Double)
Returns a random integer from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberSign(IRandom, Int32, Int32)
Returns a random integer from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberSign(IRandom, Int64, Int64)
Returns a random integer from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberSign(IRandom, Single, Single)
Returns a random integer from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberSign(IRandom, UInt32, UInt32)
Returns a random integer from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberSign(IRandom, UInt64, UInt64)
Returns a random integer from the set { -1, +1 } where on average the ratio of positive one results to negative one results will be ratioPositive:ratioNegative.
Public methodStatic memberSignOrZero(IRandom)
Returns a random integer with exacty a one third chance each of being positive one, zero, or negative one.
Public methodStatic memberSignOrZero(IRandom, Double, Double, Double)
Returns a random integer from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberSignOrZero(IRandom, Int32, Int32, Int32)
Returns a random integer from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberSignOrZero(IRandom, Int64, Int64, Int64)
Returns a random integer from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberSignOrZero(IRandom, Single, Single, Single)
Returns a random integer from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberSignOrZero(IRandom, UInt32, UInt32, UInt32)
Returns a random integer from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberSignOrZero(IRandom, UInt64, UInt64, UInt64)
Returns a random integer from the set { -1, 0, +1 } where on average the ratio of positive one results to zero results to negative one results will be ratioPositive:ratioZero:ratioNegative.
Public methodStatic memberSignProbability(IRandom, Double, Double)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is set by the parameter probabilityPositive and the probability of a positive one result is set by the parameter probabilityNegative. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, Int32, Int32)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/2^31 and the probability of a negative one result is numeratorNegative/2^31. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, Int64, Int64)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/2^63 and the probability of a negative one result is numeratorNegative/2^63. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, Single, Single)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is set by the parameter probabilityPositive and the probability of a positive one result is set by the parameter probabilityNegative. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, UInt32, UInt32)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/2^32 and the probability of a negative one result is numeratorNegative/2^32. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, UInt64, UInt64)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/2^64 and the probability of a negative one result is numeratorNegative/2^64. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, Double, Double, Double)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, Int32, Int32, Int32)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, Int64, Int64, Int64)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, Single, Single, Single)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, UInt32, UInt32, UInt32)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberSignProbability(IRandom, UInt64, UInt64, UInt64)
Returns a random integer from the set { -1, 0, +1 } where the probability of a positive one result is numeratorPositive/denominator and the probability of a negative one result is numeratorNegative/denominator. The probability of a zero result is whatever probability is left over.
Public methodStatic memberZeroProbability(IRandom, Double)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is set by the parameter probability.
Public methodStatic memberZeroProbability(IRandom, Int32)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is numerator/2^31.
Public methodStatic memberZeroProbability(IRandom, Int64)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is numerator/2^63.
Public methodStatic memberZeroProbability(IRandom, Single)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is set by the parameter probability.
Public methodStatic memberZeroProbability(IRandom, UInt32)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is numerator/2^32.
Public methodStatic memberZeroProbability(IRandom, UInt64)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is numerator/2^64.
Public methodStatic memberZeroProbability(IRandom, Double, Double)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberZeroProbability(IRandom, Int32, Int32)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberZeroProbability(IRandom, Int64, Int64)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberZeroProbability(IRandom, Single, Single)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberZeroProbability(IRandom, UInt32, UInt32)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Public methodStatic memberZeroProbability(IRandom, UInt64, UInt64)
Returns a random integer from the set { 0, +1 } where the probability of a zero result is numerator/denominator.
Top
See Also