Take a random sample from a range of Integer values between 1 and n. Its purpose is similar to that of sample.int, but that function fails when n is very large.
Usage
sampleInt(n, size, replace=FALSE)
Arguments
n
a poistive number (integer); the number of items to choose from
size
a non-negative integer; the number of items to choose.