def generate_random_numeric(length):
    return ''.join(random.choice(string.digits)
                   for _x in range(length))
Creates a random numeric string of specified length.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/functional/integrated_helpers.py/generate_random_numeric