def generate_random_edx_username():
 allowable_chars = (string.ascii_letters + string.digits)
 username = ''
 for _index in range(30):
  username = (username + random.SystemRandom().choice(allowable_chars))
 return username

def generate_random_edx_username ( ) : allowable_chars = ( string . ascii_letters + string . digits ) username = '' for _index in range ( 30 ) : username = ( username + random . SystemRandom ( ) . choice ( allowable_chars ) ) return username
create a valid random edx user id .