RandomTools Flavor: truefalse
describe the flavor of either true or false
Calling Sequence
Parameters
Description
Examples
truefalse
truefalse(opt)
opt
-
equation of the form probability=p where p is a numeric value; specify options for the random truefalse
The flavor truefalse describes the values true or false.
To describe a flavor of a random truefalse, use either truefalse or truefalse(opt) (where opt is described following) as the argument to RandomTools[Generate] or as part of a structured flavor .
By default, the flavor truefalse describes the values true and false with equal probability.
You can modify the properties of true or false by specifying opt as the equation probability=p, where p is a numeric value between 0 and 1 that specifies the probability that the object will be true.
with⁡RandomTools:
Generate⁡truefalse
true
Generate⁡list⁡truefalse⁡probability=0.3,7
false,true,false,true,false,true,false
See Also
flavor/structured
RandomTools
RandomTools[Generate]
type/truefalse
Download Help Document
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル