It looks like your randomly generated SSNs never start with “0”. You should update the algorithm to include that range since it is a real possibility that an SSN will start with “0” (or even “00”). SSNs that start with a zero can lead to defects in software if they are treated like numbers instead of strings, e.g. 1234567 != “001234567”.