一 数组乱序输出

    Math.random输出的结果是0-1内的⼩数,可以直接通过length映射

    const randomIndex = Math.round(Math.random()*(array.length - 1 -i) + 1);