Random Integer between 2 and 10

import numpy as np
a = np.random.randint(2, 10, size=4)
print(a)
[8 4 5 3]