shuffle: Shuffling Algorithm

View source: R/shuffle.R

shuffleR Documentation

Shuffling Algorithm

Description

Implementation of a simple shuffling algorithm that can be used to randomly permute a given set of simulated random numbers.

Usage

shuffle(n, k = 100, x = runif(n))

Arguments

n

numeric: number of variates to be output.

k

numeric: a tuning parameter for the shuffler.

x

a vector containing a sequence to be randomly permuted with the shuffler.

Value

a numeric vector


MiscMath documentation built on April 13, 2025, 9:07 a.m.