RAND_UNIFORM-cash-gen: Generate random values

RAND_UNIFORM$genR Documentation

Generate random values

Description

This function generates random values from the random variable.

Usage

RAND_UNIFORM$gen(n, a = NULL, b = NULL)

Arguments

n

Integer. Number of observations.

a

Numeric. If it is provided and has length n, values will be used in each realization.

b

Numeric. If it is provided and has length n, values will be used in each realization.

Value

A vector of numeric values.

See Also

stats::runif()

Examples


test <- rand_uniform(a = 1, b = 2)
test$gen(10)

test$gen(3, a = c(1,2,3), b = c(2,3,4))

TengMCing/visage documentation built on Aug. 28, 2024, 3:27 p.m.