R/random_generators.R

Defines functions Sample.int Sample Runif

Documented in Runif Sample Sample.int

#[export]
Runif <- function(n, min = 0, max = 1){
	.Call(Rfast2_Runif, n, min, max)
}
#[export]
Sample <- function(x, size, replace = FALSE){
	.Call(Rfast2_Sample, x, size, replace)
}
#[export]
Sample.int <- function(n, size = n, replace = FALSE){
	.Call(Rfast2_Sample_int, n, size, replace)
}

Try the Rfast2 package in your browser

Any scripts or data that you put into this service are public.

Rfast2 documentation built on Aug. 8, 2023, 1:11 a.m.