Relative Content

Tag Archive for rpermutation

R: take random sample of all possible permutations

My question is related to this one: R: first N of all permutations. In that link, there is a function that takes the first N possible permutations of a set of integers. I want something similar but rather than taking the first N, I want to select a random sample all possible permutations. I would like to do this without having to first list out all possible permutations, as that would be computationally intensive for large sets of integers. How can I do this in R?