xxxxxxxxxx
let sides = 100;
let radius = 100;
let minRadius = 80;
let maxRadius = 120;
function setup() {
createCanvas(400, 400);
background(255);
translate(width / 2, height / 2);
let angleIncrement = TWO_PI / sides;
beginShape();
for (let i = 0; i < sides; i++) {
let randomizedRadius = random(minRadius, maxRadius);
let x = randomizedRadius * cos(i * angleIncrement);
let y = randomizedRadius * sin(i * angleIncrement);
vertex(x, y);
}
endShape(CLOSE);
}