Generate Integer Triples screenshot

Generate Integer Triples

Build every (x, y, z) triple from three integer ranges.

Privacy First
0 Runs
Updated 2026-11-06
No upload

What this page computes

Set the inclusive bounds of three ranges and the page prints every ordered triple, x major then y then z. The list is comma separated and the total is printed beneath it.

Where it stops

The output is a cartesian product in a fixed order, not a random sample: no seed is read and no clock is consulted. A reversed bound is refused, and more than 200 triples is refused with the count so a typo in one bound is visible before the list is built.

Why the answer repeats

The three nested loops run in this tab, so a given set of bounds always prints the same triples and no value is generated anywhere else.

Every ordered (x, y, z) triple from three inclusive integer ranges, ordered x then y then z, with the total. It is a cartesian product with no randomness; reversed bounds and more than 200 triples are refused.

How to use it

Set all three ranges, then press Run. Triples print in x, y, z order and the second line counts them.

The arithmetic

The count is the product of the three widths. The loops nest x outside y outside z, so z changes fastest and x slowest, which is the order the list shows.

What to Expect

Best for

  • enumerating lattice points
  • building a three-factor test matrix

What this tool keeps

  • the full triple list and its count

Sample input

x 1..1, y 1..2, z 0..1

Sample output

(1, 1, 0), (1, 1, 1), (1, 2, 0), (1, 2, 1) Triples = 4

Frequently asked questions

How do I use the generate integer triples page?

Set the three ranges, then press Run.

Is anything uploaded?

No. The whole calculation runs in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once it has loaded.

What are its limits or bounds?

Every range's start must not exceed its end, and the product of the three widths must be at most 200. A larger product must be refused with its count.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.