scramble: Scramble a vector

Description Usage Arguments Value Examples

View source: R/Helpers.R

Description

This function takes a vector and returns it in a random order

Usage

1

Arguments

x

a vector

Value

a vector, now in random order

Examples

1
scramble(1:10)

Example output

 [1]  3  4 10  6  1  2  9  5  7  8

StatRank documentation built on May 1, 2019, 8:22 p.m.