-4
from random import sample
import numpy as np
a = sample(range(1, 5), 4)
b = sample(range(1, 5), 4)
c = sample(range(1, 5), 4)
d = sample(range(1, 5), 4)
jogo = np.array([[a[0], a[1], b[1], b[2]],
[a[2], a[3], b[2], b[3]],
[c[0], c[1], d[0], d[1]],
[c[2], c[3], d[2], d[3]]])
if there are equal numbers in the same row or column, I need to shuffle the samples to update the array until there are no equal values per row and column.