points2 = {
function getRandomNumber() {
return Math.random() * 2 - 1;
}
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
const points2 = [];
for (let i = 0; i < 100; i++) {
const x = getRandomNumber();
const y = getRandomInt(0, 100);
const fifthComponent = Math.floor(i / 10);
points2.push([x, y, 0, 0, fifthComponent]);
}
return points2;
}