Random Combination Generator
Generate random number combinations, or every possible combination from a range. Choose whether order matters and export the lot.
Combination Generator
Choose 3 from 10
Choose from
Order does not matter, results are shown sorted
How to use the combination generator
- Set the pool as 1 to N and how many to choose, r.
- Draw several random combinations, or tick list every one for small n and r.
- Copy or export the results.
About Random Nr's Combination Generator
The random combination generator builds number combinations from a range you set, either drawing a handful at random or listing every possible combination in full. Choose whether order matters, set how many items each combination holds, and export the result as CSV, which suits everything from lottery style picks to test cases that need every pairing covered.
How many combinations are possible
When you tick list every combination here, the count can climb fast, so it helps to know how big the set is before you generate it. The number of ways to choose r items from n, where order does not matter, is written n choose r, and choosing 6 from 49 is the classic lottery example.
| Choose | From | Combinations |
|---|---|---|
| 2 | 10 | 45 |
| 3 | 10 | 120 |
| 5 | 10 | 252 |
| 6 | 49 | 13,983,816 |
| 5 | 52 | 2,598,960 |
Choosing 6 from 49 gives 13,983,816 combinations, which is exactly the odds against a jackpot in that style of lottery: one line in nearly fourteen million.
Combinations versus permutations
A combination cares only about which items are chosen, not their order, so 1, 2, 3 is the same combination as 3, 2, 1. That is the difference from a permutation, where order matters and the two count separately.
| Choose 3 from 10 | Count | Because |
|---|---|---|
| Combinations | 120 | order ignored |
| Permutations | 720 | order counts, so six times as many |
There are always more permutations than combinations of the same size, by a factor of r factorial, which for choosing 3 is 6.
Draw random combinations or list every one
Draw a handful of random combinations for a quick pick, or tick list every one to enumerate the whole set when n and r are small, capped at the first 2000 to keep the page fast. When order matters, use the permutation generator, and for a plain unique draw, the no repeats generator.
More math and sequence generators
Frequently asked questions
What is a combination
A selection where order does not matter, so 1-2-3 and 3-2-1 count as the same combination. The tool shows them sorted.
Random draws or every combination
Draw a set of random combinations, or tick list every one to enumerate them all when n and r are small enough.
What is the limit for listing all
Enumeration is capped at the first 2000 to keep the page responsive. Beyond that, use random draws instead.
Can I choose r from any n
Yes. Set N for the pool and r for how many to choose, with r never larger than N.
Is it free
Yes, free and with no sign up.
Related generators
- Number Base Converter
- Random Binary Number Generator
- Random Hex Number Generator
- Random Octal Number Generator
- Random Roman Numeral Generator
- True Random Number Generator
- Secure Random Number Generator
- Normal Distribution Generator
- Random Sample Generator
- Random Combination Generator
- Permutation Generator
- Random Number Generator
When order matters, use the permutation generator. For a plain unique draw, see the no repeats generator.