RandomTools Flavor: choose
describe a flavor which chooses from a collection
Calling Sequence
Parameters
Description
Examples
choose(collection)
collection
-
set, list, Matrix, Vector, Array, or table
The flavor choose selects one of the entries in a non-empty collection with equal probability.
This flavor can be used as an argument to RandomTools[Generate] or as part of a structured flavor.
The flavor choose cannot select an element from a non-array table that has an indexing function.
See Also
Array
flavor[structured]
indexfcn
list
Matrix
RandomTools
RandomTools[Generate]
set
table
Vector
Download Help Document