Test Numeric Generator — Dummy Integers and Decimals for Fixtures

Generate synthetic integers and decimals for databases, fixtures, and form tests. Not a lottery, die, or cryptographic RNG; not a live identifier; not a phone number.

Loading…
Test numbers — developer notes
Synthetic integers and decimals for fixtures and DB seed. Inclusive ranges, scaled cents, no float drift. Not a lottery, CSPRNG, live ID, or phone number.

How generation works

Pick a quantity (1–100), kind, range, format, and order. Changing an option refreshes the list immediately. Copy all or download JSON, CSV, SQL, or TXT. Raw decimals use a dot and exact scale — never 0.1+0.2 drift.

Options

Quantity (1–100)
How many rows to emit for seed jobs. Capped at 100.
Kind
integer emits whole numbers for INT columns and step=1 inputs. decimal emits DECIMAL/NUMERIC strings (default 2 places, 0–6) by drawing scaled integers then inserting a dot — so 19.90 stays 19.90.
Range
Inclusive windows: id 1–10000 (default), qty 1–99, price 0.00–9999.99, percent 0–100, port 1024–65535, or custom min/max. Named presets snap kind. Custom min > max yields no rows. Endpoints are always included.
Format
raw (default) is JSON/SQL-safe: a dot decimal separator and no grouping, even on fr/de pages. locale uses the page language via Intl. padded is integer-only; width is the digit count of max (id → 00042).
Order
random (default) draws with replacement — duplicates are expected for qty/price. unique draws without replacement and errors if count exceeds the pool (it does not silently shorten). sequence walks from min by one integer or one scaled decimal step and errors if the last value would pass max. Unique means unique in this list, not globally.

Examples

Default surrogate keys

Settings

kind=integer, range=id, format=raw

Sample output

42

Money without a currency glyph

Settings

kind=decimal, range=price, format=raw

Sample output

19.99

Related tools

Need matching field columns or a JSON table? Try the test email generator, test date generator, test name generator, or JSON test data generator. Need an identifier instead? Use the UUID generator or NanoID generator.

Test numeric FAQ

Fixtures, INT/DECIMAL, and what this tool is not

I searched for a random number generator. Is this it?

If you need dummy integers and decimals for fixtures, DB seed, and form QA, yes. If you want lottery balls, dice, or a lucky pick, this page will not do that — it generates a pasteable list for developers.

Can I get a random integer or use this as a decimal generator?

Yes: kind=integer (default) for INT columns, kind=decimal for DECIMAL/NUMERIC with 0–6 places (default 2). Output is synthetic fixture numbers, not a statistical sampler or scientific calculator.

Is this a lottery tool or a CSPRNG?

No. There is no raffle, no cryptographic randomness, and no seed knob. Draws use a uniform house RNG for fixtures. Do not use the list for gambling, secrets, or payment cards.

I wanted a test number generator — are these phone numbers?

No. This page emits integers and decimals only (id, qty, price, port). For dummy phone numbers, use the test phone number generator. Unique order means unique in this list, not a live identifier like a UUID.

Synthetic field values for fixtures and DB seed — reserved-range phone numbers first.