Comment sélectionner au hasard R

#From a vector of n values, randomly pick y values not repeating any of them
pool <- my_set_of_values_to_pick_from
y <- #NUM = how many values i want to pick from pool

sample(pool, size=y, replace =F)
#replace = FALSE assures me no values will be picked twice
Big Feeeeeb