Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
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>).
choose
complex
distribution
exprseq
float
identical
integer
list
listlist
negative
negint
nonnegative
nonnegint
nonposint
nonpositive
nonzero
nonzeroint
polynom
posint
positive
rational
set
structured
truefalse
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
See Also
LinearAlgebra[RandomMatrix], LinearAlgebra[RandomVector], makeproc, rand, RandomTools, randpoly, type/atomic
Download Help Document