RandomTools
RemoveFlavor
remove a flavor template
Calling Sequence
Parameters
Description
Examples
RemoveFlavor(flvr)
flvr
-
symbol; represents a flavor in the form of a procedure or module
The RemoveFlavor(flvr) removes the flavor specified by flvr from the list of flavors that function Generate recognizes.
If the flavor is not known to function Generate, an exception is raised.
This function is part of the RandomTools package, and so it can be used in the form RemoveFlavor(..) 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[RemoveFlavor](..).
with⁡RandomTools:
Generate⁡A
Error, (in RandomTools:-Generate) the flavor `A` does not exist
AddFlavor⁡A=rand⁡1..20
procprocoptionbuiltin=RandNumberInterface;end proc⁡6,20,5+1end proc
15
13
member⁡A,GetFlavors⁡
true
RemoveFlavor⁡A
false
See Also
module
procedure
RandomTools[AddFlavor]
RandomTools[Generate]
RandomTools[GetFlavors]
Download Help Document