All Tools
Categories
Number Tools 116 XML Tools 64 Email Marketing Tools 55 Import-Export Tools 50 JSON Tools 45 Text Tools 13 Shipping Freight Tools 5 Calculator 4
About Contact Privacy

Generate Tuples of Numbers

Generate n-tuples of numbers - pick how many components, the range for each, how many tuples, and whether they may repeat. See sum and generalised distance on every row. Copy or download. Runs in your browser. Free.

Parameters
2 - 12
component lower
component upper
1 - 1000
Result

        

About Generate Tuples of Numbers

An n-tuple is an ordered list of n numbers: (a1, a2, ..., an). Pairs and triples are the 2- and 3-tuples; the n-tuple makes the idea general. Databases call every row a tuple, machine learning calls them feature vectors, and geometry calls them points in n-dimensional space - one word, many dimensions.

Generate Tuples of Numbers builds n-tuples of any arity from 2 to 12, with each component drawn from the range you set. Every row shows its sum and n-dimensional distance, and a no-repeat option keeps the set unique. Up to 1000 tuples, copy or download.

Features

  • Any arity: From pairs (2) up to 12-component tuples.
  • Ordered lists: Exactly n numbers per row, in order.
  • Shared range: One range shapes every component.
  • No-repeat option: Guarantee distinct tuples for data.
  • Sum and distance: Two compact statistics on every row.
  • Up to 1000 tuples: A full dataset in one run.

How to Use

  1. Choose n - the number of components per tuple.
  2. Set the range - the bounds each component draws from.
  3. Choose repeats - yes for samples, no for unique sets.
  4. Set the count - up to 1000 tuples.
  5. Generate - and read tuples with their sums and distances.

Examples

1. n = 2, range 1-6, 8 tuples: eight ordered pairs - a dice-roll dataset.

2. n = 4, range 0-9, 10 tuples: four-digit feature rows like (3, 7, 1, 5).

3. n = 3, range -3 to 3, no repeats, 15 tuples: distinct 3D-ish points in a signed box.

4. n = 6, range 1-49, 6 tuples: lottery-style draws on the classic six-number scale.

5. n = 12, range 0-1, 5 tuples: twelve-bit strings as tuples of zeros and ones.

Benefits

  • Dimension flexible: Any arity from 2 to 12, same tool.
  • Order matters: Components stay in exact sequence.
  • Uniqueness toggle: No repeats for proper datasets.
  • Compact statistics: Sum and distance summarise each row.
  • Copy or download: The tuple list exports one per line.
  • Private and free: All generation stays in the browser; nothing is uploaded or logged.

Frequently Asked Questions

What is an n-tuple?
A list of n numbers written in order: (a1, a2, ..., an). A pair is a 2-tuple, a triple a 3-tuple; the n-tuple generalises both to any number of components.
How many components?
You choose n, from 2 up to 12 - every tuple shows exactly that many numbers in order.
Can I set the range?
Yes. Choose the range that every component is drawn from - negatives allowed - so values fall in an n-dimensional box.
Can tuples repeat?
Your choice. "No repeats" guarantees distinct tuples; "allow repeats" is fine for quick random samples.
What else does each tuple show?
The sum of its components and the n-dimensional distance from the origin (the square root of the sums of the squares).
How many tuples?
Up to 1000 tuples in a single run.
Where are tuples used?
Databases (one row is a tuple), machine-learning feature vectors, geometry in any dimension, and any multi-field record.
Can I copy or download?
Yes. Copy takes the whole list; download saves it as a text file, one tuple per line.
Is anything stored or uploaded?
No. Everything runs in your browser. Nothing is sent, saved or logged.