return the names of all known flavors - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Random Objects : RandomTools package : Commands : RandomTools/GetFlavors

RandomTools[GetFlavors] - return the names of all known flavors

 Calling Sequence GetFlavors()

Description

 • The GetFlavors() function returns an expression sequence that contains the names of all flavors known to function Generate.
 • This function is part of the RandomTools package, and so it can be used in the form GetFlavors(..) only after executing the command with(RandomTools). However, it can always be accessed through the long form of the command by using the form RandomTools[GetFlavors](..).

Examples

 > $\mathrm{with}\left(\mathrm{RandomTools}\right):$
 > $\mathrm{GetFlavors}\left(\right)$
 ${\mathrm{Matrix}}{,}{\mathrm{Vector}}{,}{\mathrm{choose}}{,}{\mathrm{complex}}{,}{\mathrm{distribution}}{,}{\mathrm{exprseq}}{,}{\mathrm{float}}{,}{\mathrm{integer}}{,}{\mathrm{list}}{,}{\mathrm{listlist}}{,}{\mathrm{negative}}{,}{\mathrm{negint}}{,}{\mathrm{nonnegative}}{,}{\mathrm{nonnegint}}{,}{\mathrm{nonposint}}{,}{\mathrm{nonpositive}}{,}{\mathrm{nonzero}}{,}{\mathrm{nonzeroint}}{,}{\mathrm{polynom}}{,}{\mathrm{posint}}{,}{\mathrm{positive}}{,}{\mathrm{rational}}{,}{\mathrm{set}}{,}{\mathrm{string}}{,}{\mathrm{truefalse}}$ (1)
 > $\mathrm{AddFlavor}\left(A=\mathrm{rand}\left(1..20\right)\right):$
 > $\mathrm{Generate}\left(A\right)$
 ${15}$ (2)
 > $\mathrm{GetFlavors}\left(\right)$
 ${A}{,}{\mathrm{Matrix}}{,}{\mathrm{Vector}}{,}{\mathrm{choose}}{,}{\mathrm{complex}}{,}{\mathrm{distribution}}{,}{\mathrm{exprseq}}{,}{\mathrm{float}}{,}{\mathrm{integer}}{,}{\mathrm{list}}{,}{\mathrm{listlist}}{,}{\mathrm{negative}}{,}{\mathrm{negint}}{,}{\mathrm{nonnegative}}{,}{\mathrm{nonnegint}}{,}{\mathrm{nonposint}}{,}{\mathrm{nonpositive}}{,}{\mathrm{nonzero}}{,}{\mathrm{nonzeroint}}{,}{\mathrm{polynom}}{,}{\mathrm{posint}}{,}{\mathrm{positive}}{,}{\mathrm{rational}}{,}{\mathrm{set}}{,}{\mathrm{string}}{,}{\mathrm{truefalse}}$ (3)
 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam