Sample without the n=1 gotcha

sample_int(
  n,
  size = n,
  replace = FALSE,
  prob = NULL,
  useHash = (n > 1e+07 && !replace && is.null(prob) && size <= n/2)
)

sample_from(x, size = length(x), replace = FALSE, prob = NULL)