sampleInt.RdTake a random sample from a range of integer values between 1 and n. Its purpose is similar to that of sample, but that function fails when n is very large.
sampleInt(n, size, replace=FALSE)vector of integer numbers
sampleInt(1e+12, 10)
#> [1] 900421502768 126839369303 59632766061 818412929075 860316375504
#> [6] 45199630550 224530511769 704817934894 98695662106 15891074902
# this may fail:
# sample.int(1e+12, 10)
# sample.int(1e+9, 10)