I have a function which gives me all combination of values, in an array with fixed length a fixed sum :
// $n_valeurs is the length of the array // $x_entrees