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.

Test Data

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

Explore other tool categories

Minify

Shrink code and assets for production — minify JavaScript, CSS, HTML, JSON and XML before gzip or CDN deploy.

Beautify

Make code readable with consistent indentation — beautify JavaScript, CSS, TypeScript, SCSS, LESS, Markdown, GraphQL, SQL, YAML and more in your browser.

Unminify

Expand minified or compressed code — unminify JavaScript, CSS, TypeScript, SCSS, LESS, SQL, YAML and other formats when debugging or reviewing.

Conversion

Transform data between JSON, YAML, XML and CSV locally — no server uploads.

CSS preprocessors

Compile SCSS or LESS to standard CSS in the browser — pair with beautify or minify for a full stylesheet workflow.

JSON Tools

Validate, format, diff and explore JSON payloads — complementary to minifiers and converters.

SVG Tools

Preview, optimize with SVGO, export Data URI, resize, beautify, convert to JSX and validate SVG — all in your browser.

DevOps & Infra

Terraform HCL format/validate/minify, Dockerfile format & lint, Docker Compose and .env validation.

CI/CD

GitHub Actions and GitLab CI — format YAML and check workflow/job structure in your browser.

Logs & observability

Line-oriented JSON/NDJSON and Nginx/Apache access logs — format, filter, validate, and CSV/TSV.

Kubernetes

Multi-doc manifests, structural validate, Ingress/Deployment starters, and Helm values formatting.

Networking / IP

CIDR, subnets, and IPv4/IPv6 helpers — in your browser.

Security & tokens

JWKS, X.509 certificates, and secrets scan — browser-local.

API & schemas

OpenAPI tools to format, validate, and lint your specs.

Encoding

Encode or decode Base64, URL components and HTML entities — client-side only.

Developer utilities

Timestamps, UUID, ULID, Nanoid, cron, passwords, regex, slugify, number bases, case, text diff, and chmod — all client-side.

Text & Markdown

Count words, build Markdown TOCs, and clean line lists — all in your browser.

AI & LLM

Token counting, pricing estimates, and context-window fit — 100% browser-local.

Serialization

Serialize and deserialize PHP data structures beside JSON workflows.