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