It's both. In 2011 or so, new SSNs started being generated as random draws from a pool, instead of the serial assignment they'd been using before that.
The first 3 digits seem to not be random though
The first 3 digits seem to not be random though