Empuje la matriz a otra matriz en posiciones aleatorias JavaScript
while (b.length) {
a.splice(Math.floor(Math.random() * (a.length + 1)), 0, b.pop());
}
CyberStakes
while (b.length) {
a.splice(Math.floor(Math.random() * (a.length + 1)), 0, b.pop());
}