📅  最后修改于: 2022-03-11 15:03:24.803000             🧑  作者: Mango
function getRandomNumberArr(bound, length) {
return Array.from({ length }, () =>
Math.floor((Math.random() - 0.5) * 2 * bound)
);
}
const randomArray = getRandomNumberArr(100, 200);