RAND_UNIFORM_D-cash-gen: Generate random values

RAND_UNIFORM_D$genR Documentation

Generate random values

Description

This function generates random values from the random variable.

Usage

RAND_UNIFORM_D$gen(n, a = NULL, b = NULL, k = NULL, even = 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.

k

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

even

Boolean. 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(), sample()

Examples


test <- rand_uniform_d(a = 1, b = 2, k = 2, even = TRUE)
test$gen(10)

test$gen(3, a = c(1,2,3), b = c(2,3,4), k = 1, even = c(TRUE, TRUE, FALSE))

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