const randomMix = array => {
const mixer = (arr, res = []) => {
if (arr.length === 0) return res;
const randomIndex = Math.floor(Math.random() * arr.length);
const newRes = arr.splice(randomIndex, 1)
return mixer(arr, [...res, ...newRes])
}
return array.map(arr => mixer(arr))
}