Tcl Library Source Code

Documentation
Login
EuroTcl/OpenACS 11 - 12 JULY 2024, VIENNA


[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

NAME

simulation::random - Pseudo-random number generators

Table Of Contents

SYNOPSIS

package require Tcl ?8.5 9?
package require simulation::random 0.4

::simulation::random::prng_Bernoulli p
::simulation::random::prng_Discrete n
::simulation::random::prng_Poisson lambda
::simulation::random::prng_Uniform min max
::simulation::random::prng_Triangular min max
::simulation::random::prng_SymmTriangular min max
::simulation::random::prng_Exponential min mean
::simulation::random::prng_Normal mean stdev
::simulation::random::prng_Pareto min steep
::simulation::random::prng_Gumbel min f
::simulation::random::prng_chiSquared df
::simulation::random::prng_Disk rad
::simulation::random::prng_Sphere rad
::simulation::random::prng_Ball rad
::simulation::random::prng_Rectangle length width
::simulation::random::prng_Block length width depth

DESCRIPTION

This package consists of commands to generate pseudo-random number generators. These new commands deliver

For example:

set p [::simulation::random::prng_Normal -1.0 10.0]

produces a new command (whose name is stored in the variable "p") that generates normally distributed numbers with a mean of -1.0 and a standard deviation of 10.0.

PROCEDURES

The package defines the following public procedures for discrete distributions:

The package defines the following public procedures for continuous distributions:

The package defines the following public procedures for random point sets:

KEYWORDS

math, random numbers, simulation, statistical distribution

CATEGORY

Mathematics

COPYRIGHT

Copyright © 2004 Arjen Markus