randrange: choose a random item from range(start, stop[)
randrange
import random rand_arr=[ random.randrange(0,10) for i in range(10) ]