def groupe_alea(n): while 1: M = sudoku_alea(n) if associative(M): return M