文字列シャッフル
string = "12345678"; shuffledString = string.split('').sort(() => .5 - Math.random()).join(''); console.log(shuffledString);
string = "12345678"; shuffledString = string.split('').sort(() => .5 - Math.random()).join(''); console.log(shuffledString);