Number Sequence
Print every integer from start through end using a fixed step. This is counting, not a random draw.
Rated 4.7 out of 5 based on 319 reviews
How to print an integer sequence
- Set Start to the first integer you want on the list.
- Set End to the last integer you will allow. The end is included when the step lands on it.
- Set Step. Use 1 for 1, 2, 3. Use a negative step only when End is below Start. Step cannot be 0.
- Generate. If the list would pass 10000 numbers, the page stops with an error instead of hanging.
Arithmetic integer sequence
Deterministic list n, n+step, ... until end
| Randomness | None. Same inputs always print the same list |
|---|---|
| Step rule | Step cannot be 0. Sign must move toward end |
| Inclusive end | End is included when it is on the step grid |
| Length cap | At most 10000 integers |
| Negative step | Allowed when end is less than start |
This list is not random
A sequence is arithmetic. Start 1, end 10, step 1 prints 1 through 10 in order every time. There is no shuffle and no Web Crypto draw. If you wanted unique lottery-style picks, use lottery numbers. If you wanted a single random integer in a range, use the random number generator.
Step cannot be 0
A zero step never moves, so the page rejects it. A positive step must have end at or above start. A negative step must have end at or below start. Start 10, end 1, step -1 prints 10 down to 1. Start 1, end 10, step -1 is invalid because the step does not move toward the end.
1 to 100 and other counts
People often want every integer from 1 to 100. Set Start 1, End 100, Step 1. Evens from 2 to 20 use Start 2, End 20, Step 2. The end is included when the running value equals it. If the step would skip the end, the list stops on the last value that still sits on the grid and does not pass the end.
Ten thousand number cap
Huge ranges can freeze a tab. The engine stops if the list would exceed 10000 integers. Narrow the span or raise the absolute step. Output is one number per line so you can paste into a spreadsheet or a test fixture.
Whole numbers only
Start, end, and step must be whole numbers the engine can treat as safe integers. Fractions are not a sequence on this page. Scientific notation in the fields is not a feature. Keep the three values simple.