SSN
Every SSN the program makes starts with 666, an area the Social Security Administration never issues, so none of them is anybody’s number.
What an SSN is
Nine digits written 123-45-6789: a three-digit area, a two-digit group and a four-digit serial. There is no check digit, so no arithmetic can catch a typo. What can be checked is whether the number falls in a part of the range that is never issued.
Numbers that are never issued
- area 000, area 666, and areas 900 to 999,
- group 00,
- serial 0000.
Areas 900 to 999 are not free. They have the shape of Individual Taxpayer Identification Numbers, which belong to real people. That leaves 666 as the one area that looks ordinary and belongs to nobody.
For a single number shown in an advertisement or a demonstration, the Social Security Administration’s own advice is 000-00-0000.
Valid SSNs for your tests
$ qadg quick ssn --count 5 --seed example 666-56-7339 666-60-1218 666-37-6059 666-33-3465 666-32-6960
--count 1000 gives a thousand. An application that checks whether an area is ever issued will refuse every one of them, valid rows included. That is the price of numbers that cannot be anybody’s.
What your application should do with a broken one
The damage moves a number into area 000, group 00 or serial 0000, and any validator that knows the SSN rules refuses those. The manifest marks this answer as depending on your application, because the check needs knowledge of the rules rather than arithmetic, and many systems do not carry it.
Broken ones for your tests
The recipe below makes 100 values and asks for damage in 20% of the rows. Download it and run it as it is, then change the count or the share to fit your tests.
The recipe
# Social security numbers for testing, with one broken value asked for in about
# a fifth of the rows.
#
# Every SSN starts with 666, an area that is never issued, so none of them is
# anybody's. An SSN has no check digit, so the damage moves a number into area
# 000, group 00 or serial 0000, and the manifest says your application should
# reject each one. It also lists the damage this build could not carry out, with
# the reason.
#
# qadg generate ssn.yaml
#
# writes person.csv, expectation-manifest.json and run-note.json. The same seed
# breaks the same values on every machine.
version: "0.1"
seed: "ssn"
locale: en-US
entities:
person:
count: 100
fields:
ssn: { generator: ssn }
policy:
layers: [L3]
rows: 20%
per_row: exactly_one
output:
format: csv
Run it
Save the recipe, then run this in the same folder. This is what the program printed for it.
$ qadg generate ssn.yaml person: 100 rows, 1 column 1 table, 100 rows written 14 defects ordered, 2 applied, manifest in expectation-manifest.json 12 defects could not be applied, and the manifest carries the reason for each one 4 because this run lacks something they need, and the manifest says what for each one 8 because this build has no implementation of them yet
What it damaged
The recipe ordered 14 defects, and this build applied the 2 below. The other 12 are in the manifest as not applied, each with its reason, and the run above counts them by reason.
L3.range.unassigned~ rejectperson 4, column ssn
666-25-6687 → 000-25-6687
L3.range.unassigned~ rejectperson 46, column ssn
666-49-1905 → 000-49-1905
Sources
- Social Security Administration, Social Security Number Randomization and its FAQ, ssa.gov/employer, read on 2 August 2026.
- Social Security Administration, Program Operations Manual System, RM 10201.020.