randomize()

Randomly re-arranges the quadrille cells.

Example

(mouse click to randomize; press any key to reset)

edit, then run

Note

For deterministic (repeatable) randomness, explicitly call randomSeed(seed) before randomize().

Syntax

randomize()

What this page's examples use
p5.quadrille
drawQuadrille createQuadrille cellLength randomize
p5.js
createCanvas loadImage

Names the analysis can prove are called, and the line each one is documented on. Local variables and members of an unknown receiver are left out.