DV case numbers comes about during the selection process. When you apply for electronic diversity visa lottery program and successfully complete the application
[...]
Electronic Diversity Visa Lottery Entry: Interested individuals who are eligible are encouraged to apply, including selectees who were unable to obtain a visa
[...]