random.randint(a, b): [a, b], return ONE random number of between a and b, both a and b are included when acuqiring the number;
random.randint(a, b, size = tuple): [a, b), return random number(s) of between a and b, a included and b is not when acuqiring the number(s), size is 1 by default
e.g.
1In [36]: random.randint(1,10) 2Out[36]: 8 3------------------------------------ 4In [37]: np.random.randint(10,20) 5Out[37]: 11 6 7In [38]: np.random.randint(10,20,2) 8Out[38]: array([19, 15]) 9
