I want to generate a string of size N.
It should be made up of numbers and uppercase English letters such as:
Based on another Stack Overflow answer, Most lightweight way to create a random string and a random hexadecimal number, a better version than the accepted answer would be:
('%06x' % random.randrange(16**6)).upper()
much faster.