Randomization
Like flipping a coin, or throwing a dice.
Randomization is the process of making something random. Randomization is not haphazard; instead, a random process is a sequence of random variables describing a process whose outcomes do not follow a deterministic pattern, but follow an evolution described by probability distributions.
Flipping a coin
// flipping a coin (pick a color) if (p.random(1, 10) > 5) { p.fill('white'); } else { p.fill('blue'); }
Throwing dice
// throwing dice (pick a shape) const dice = p.int(p.floor(p.random(1, 7))); switch (dice) { case 1: p.letterM(x, y); break; case 2: p.letterO(x, y); break; case 3: p.letterN(x, y); break; case 4: p.letterOo(x, y); break; default: // silence, silencio }
RandomDisorderNoiseGamblingChaosSeed