此方法实现了一个把数组随机排列的方法使用方法输入需要排列的数组let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];引入randomArray模块const randomArray = require('./randomArray')打印结果console log(randomArray(arr))2 dependents1 version@infinitebrahmanuniverse/nolb-tyl@everything-registry/sub-chunk-29921.0.03 years ago