shuffle {MiscMath} | R 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
[Package MiscMath version 1.1 Index]