Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

runif_r

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 ≤ft[a,b\right]

max

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

Examples

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

sitmo

Parallel Pseudo Random Number Generator (PPRNG) 'sitmo' Header Files

v2.0.1
MIT + file LICENSE
Authors
James Balamuta [aut, cre, cph] (<https://orcid.org/0000-0003-2826-8458>), Thijs van den Berg [aut, cph], Ralf Stubner [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.