tbh 5 character ids can be easily brute forced and not very unique best way to generate these would be to cycle through all the combinations using somethng like itertools
it's just practice for an exam it doesnt need to be complex