runif_r: Random Uniform Number Generator using base R

View source: R/RcppExports.R

runif_rR Documentation

Random Uniform Number Generator using base R

Description

The function provides an alternative implementation of random uniform distribution sampling using R's rng scope.

Usage

runif_r(n, min = 0, max = 1)

Arguments

n

An unsigned integer denoting the number of realizations to generate.

min

A double indicating the minimum a value in the uniform's interval \left[a,b\right]

max

A double indicating the maximum b value in the uniform's interval \left[a,b\right]

Examples

set.seed(134)
b = runif_r(10)

coatless/sitmo documentation built on Nov. 16, 2023, 5:33 a.m.