Click or drag to resize

RandomGeneratorBool Method

get a random Boolean.

Namespace:  WhetStone.Random
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public bool Bool(
	double trueodds = 1,
	double falseodds = 1
)

Parameters

trueodds (Optional)
Type: SystemDouble
Odds will be returned.
falseodds (Optional)
Type: SystemDouble
Odds will be returned.

Return Value

Type: Boolean
A random Boolean with likelihoods of trueodds:falseodds
See Also