samedi 14 mars 2020

Creating a random ID number the length of a paramter

i need to create a method in which takes a string paramter and an int paramter such as ("GB-", 5) where the string is the pre fix code for the start of the ID and the int is the amount of numbers to be generated e.g the output would be "GB-12345" for the unique id

what would be the best way to approach this ?




Aucun commentaire:

Enregistrer un commentaire