Test Numeric Generator — Dummy Integers and Decimals for Fixtures

Generate synthetic integers and decimals for databases, fixtures and form tests. This is not a lottery, a die or a cryptographic RNG, and the values are neither live identifiers nor phone numbers.

Loading…
Notes on test numbers
Synthetic integers and decimals for fixtures and database seeds. Ranges include both ends and decimals are drawn as scaled integers, so there is no float drift. Not a lottery, a CSPRNG, a live ID or a phone number.

How generation works

Pick a quantity (1–100), a kind, a range, a format and an order. Each option change generates a new list. Copy everything or download JSON, CSV, SQL or TXT. Raw decimals use a dot and an exact number of places, so 0.1 + 0.2 never shows up as 0.30000000000000004.

Options

Quantity (1–100)
How many values to generate, from 1 to 100.
Kind
Integer gives whole numbers for INT columns. Decimal gives DECIMAL or NUMERIC values with 0 to 6 places (2 by default). The tool draws a scaled integer and then inserts the dot, so 19.90 stays 19.90.
Range
Preset ranges include both ends. The id range goes from 1 to 10000 (default) and qty from 1 to 99. The price range goes from 0.00 to 9999.99, percent from 0 to 100 and port from 1024 to 65535. A preset also sets the kind. Choosing another kind copies the preset bounds into Custom range. A custom minimum above the maximum shows an error.
Format
Raw (default) is safe for JSON and SQL: a dot as decimal separator and no grouping, whatever the page language. Locale formats numbers with the page language. Padded adds leading zeros to integers, up to the number of digits of the maximum (42 in the id range gives 00042).
Order
Random (default) allows duplicates, which are common in a small range such as qty. Unique in this list never repeats a value and shows an error if the quantity is larger than the range. Sequence counts up from the minimum, by one unit or by one step of the last decimal place. It shows an error if it would pass the maximum.

Examples

Default surrogate keys

Settings

kind=integer, range=id, format=raw

Sample output

42

Amount without a currency sign

Settings

kind=decimal, range=price, format=raw

Sample output

19.99

Related tools

Need matching 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 number FAQ

Fixtures, INT and DECIMAL, and what this tool does not do

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

Yes, if you need dummy integers and decimals for fixtures, database seeds or form tests. It does not draw lottery balls, roll dice or pick a lucky number. It gives developers a list to paste.

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

Yes. Integer (the default) suits INT columns. Decimal suits DECIMAL or NUMERIC columns, with 0 to 6 places and 2 by default. These are synthetic fixture values, not a statistical sampler or a scientific calculator.

Is this a lottery tool or a CSPRNG?

No. There is no raffle, no cryptographic randomness and no seed setting. Values come from the browser’s Math.random, which is uniform but not cryptographic. Do not use the list for gambling, secrets or payment cards.

I wanted a test number generator. Are these phone numbers?

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

Dummy names, emails, phone numbers, addresses, dates, IBANs, card numbers and JSON, CSV or SQL rows for fixtures and database seeds. Everything is generated in your browser.