def generate_random_numeric(length):
 return ''.join((random.choice(string.digits) for _x in range(length)))

def generate_random_numeric ( length ) : return '' . join ( ( random . choice ( string . digits ) for _x in range ( length ) ) )
creates a random numeric string of specified length .