RandomTools[Generate] - generate a particular random object
|
Calling Sequence
|
|
Generate(expr)
|
|
Parameters
|
|
expr
|
-
|
expression; defines the form of the random object
|
|
|
|
|
Description
|
|
•
|
The Generate(expr) function generates a particular random object that is determined by expr. The expr parameter is used to:
|
|
* indicate a particular Maple type,
|
|
* indicate a flavor template, where specific keywords describe the form of the returned random object, or
|
|
* choose a random entry from a Maple data structure.
|
|
The following list describes the Maple types, flavor templates, and data structures that are recognized by Generate. For more information about how to generate a random number that corresponds to one of these items, see the corresponding help page (flavor/<topic>).
|
•
|
The Generate function calls the Maple rand procedure.
|
•
|
The Generate function maps onto all objects that are not of type atomic.
|
•
|
This function is part of the RandomTools package, and so it can be used in the form Generate(..) 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[Generate](..).
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?