import time
import numpy
import random
n = 30000
m = 1
t = time.time()
for i in range(10**m):
list((numpy.random.rand(n) * 10).astype(int))
print("numpy way took %.3f seconds" % (time.time() - t))
t = time.time()
for i in range(10**m):
[random.randint(0,10) for _ in range(n)]
print("randint way took %.3f seconds" % (time.time() - t))
aW1wb3J0IHRpbWUKaW1wb3J0IG51bXB5CmltcG9ydCByYW5kb20KCm4gPSAzMDAwMAptID0gMQoKCnQgPSB0aW1lLnRpbWUoKQpmb3IgaSBpbiByYW5nZSgxMCoqbSk6CglsaXN0KChudW1weS5yYW5kb20ucmFuZChuKSAqIDEwKS5hc3R5cGUoaW50KSkKcHJpbnQoIm51bXB5IHdheSB0b29rICUuM2Ygc2Vjb25kcyIgJSAodGltZS50aW1lKCkgLSB0KSkKCnQgPSB0aW1lLnRpbWUoKQpmb3IgaSBpbiByYW5nZSgxMCoqbSk6CglbcmFuZG9tLnJhbmRpbnQoMCwxMCkgZm9yIF8gaW4gcmFuZ2UobildCnByaW50KCJyYW5kaW50IHdheSB0b29rICUuM2Ygc2Vjb25kcyIgJSAodGltZS50aW1lKCkgLSB0KSk=