Learn R Programming

noah (version 0.1.0)

remove_remaining: Remove numbers from a lazy non-repeating random number generator

Description

Modify the random permutation function f in order to remove numbers i from the numbers that are available in the random permutation

Usage

remove_remaining(f, i)

Arguments

f

Function created by random_permutation()

i

Integer vector of numbers that should be removed from remaining numbers in the random permutation that is produced by f

Value

A random permutation function which will not produce the numbers in i anymore.