Hi Divya
The code that is generated by the certificate module is currently a 10 random letters and numbers
To generate a custom code you would need to get a developer to modify the function certificate_generate_code in the mod/certificate/lib.php code.
This will need to be tested and supported internally by the developer rather than Totara
Regards