Overview of the RandomTools Package - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Random Objects : RandomTools package : RandomTools

Overview of the RandomTools Package

 

Calling Sequence

Description

List of RandomTools Package Commands

List of RandomTools Subpackages

Calling Sequence

RandomTools[command](arguments)

command(arguments)

Description

• 

The RandomTools package is the primary interface for random number generation in Maple.  In addition, the RandomTools package contains a collection of tools for working with random objects in Maple.

• 

For a quick guide to generating random numbers, arrays, permutations, graphs, polynomials, etc, see the HowDoI,WorkWithRandomGenerators help page.

• 

Each command in the RandomTools package can be accessed by using either the long form or the short form of the command name in the command calling sequence.

  

As the underlying implementation of the RandomTools package is a module, it is also possible to use the form RandomTools:-command to access a command from the package. For more information,  see Module Members.

List of RandomTools Package Commands

  

The following is a list of available commands.

AddFlavor

BlumBlumShub

Generate

GetFlavor

GetFlavors

GetState

HasFlavor

LinearCongruence

MersenneTwister

QuadraticCongruence

RandomExpand

RemoveFlavor

SetState

 

 

 

• 

The RandomTools package contains subpackages that implement various pseudo-random number generators.  Each of these generators have different properties that makes them attractive for different uses.

List of RandomTools Subpackages

  

The following is a list of subpackages.

BlumBlumShub

LinearCongruence

MersenneTwister

QuadraticCongruence

  

The Generate command accepts a so-called "flavor" as a specification of what sort of random objects to generate. The basic, predefined flavors are listed in the following table. They can be combined into structured flavors as described in flavor/structured.

choose

complex

distribution

exprseq

float

identical

integer

lislist

list

Matrix

negative

negint

nonnegative

nonnegint

nonposint

nonpositive

nonzero

nonzeroint

polynom

posint

positive

rational

set

string

structured

truefalse

variable

Vector

  

To display the help page for a particular RandomTools command, see Getting Help with a Command in a Package.

See Also

help

HowDoI,WorkWithRandomGenerators

module

rand

randomize

randpoly

Statistics[Sample]

UsingPackages

with