# Noise vs Random
const WIDTH = Math.min(window.innerWidth, window.innerHeight, 480);
let xoff = 0;
function setup() {
createCanvas(WIDTH, WIDTH);
}
function draw() {
background(51);
const x = map(noise(xoff), 0, 1, 0, width);
xoff += 0.01;
ellipse(x, height / 4, 24, 24);
const xr = map(random(), 0, 1, 0, width);
ellipse(xr, (height * 3) / 4, 4, 4);
}