Generate all possible n choose 2 pairs from a vector in R, efficient and fast
12749
How to generate all possible combinations of vectors without caring for order?
110856
Number of ways to select $K$ people from $N$ people such that at least $r$ people are there in between them
30585
Picking a random element from a set
32125
Probability of selecting q red balls from m red balls and n blue balls
89611
Combinations of selecting $n$ objects with $k$ different types
89284
Generating correlated binomial random variables
271
How to get all possible combinations of a list’s elements?
43962
Penguin Brainteaser : 321-avoiding permutations
135408
Solving permutation problem sequentially.
108943
Combining the second elements of a set of ordered pairs based on their first element
116827
Replace matrix @ vector list comprehensions with something more efficient
75223
Generate all possible permutations (or n-tuples)
116647
The number of different ways to choose $k$ out of $n$ unique items
49912
Generating ordered combination of numbers
68793
Worst-case number of transpositions needed to generate a permutation
112897
Weighted random selection with and without replacement
33873
Get all the combinations of N elements of multidimensional array