Method "rand"

Share:

Description

rand is a generic function used to produce random numbers from the distribution defined by various objects. The method invokes particular methods which depend on the class of the first argument.

Usage

1
2
## S4 method for signature 'ANY'
rand(object, n, ...)

Arguments

object

an object from which random numbers from a distribution is desired

n

numeric scalar specifying quantity of random numbers

...

additional arguments affecting the random numbers produced

Value

The form of the value returned by rand depends on the class of its argument. See the documentation of the particular methods for details of what is produced by that method.

Author(s)

Kevin R. Coombes krc@silicovore.com, P. Roebuck proebuck@mdanderson.org