from numpy import random
x = random.choice([3, 5, 7, 9], size=(3, 5))
print(x)
[[9 3 5 5 7] [7 5 3 3 9] [7 5 9 9 7]]