Random Walk Art Generator

Release wandering walkers and keep their trails as one-of-a-kind line art -- drunkard's-walk mathematics, reproducible from its seed.

What is a random walk?

A random walk is a path built from consecutive random steps, each chosen without regard to the ones before -- the mathematician's formalization of a drunkard wandering home. Despite the aimless rule, random walks obey precise laws: after n steps the wanderer ends up, on average, only about the square root of n from the start, and in two dimensions it will provably return to its origin eventually. They model an astonishing range of things, from pollen grains jittering in water (Brownian motion) to stock prices, foraging animals, and polymer chains. Drawn as a continuous trail, the same mathematics happens to produce tangled, organic line art -- which is exactly what this generator harvests.

About this generator

Every press releases one to three walkers from the centre of the disc and lets them wander -- hundreds of bounded random turns each, bouncing back inward at the rim -- leaving their full trails as line art in the site's cream, violet, and purple. Some seeds replicate the tangle with two- or four-fold rotational symmetry, turning a scribble into an ornament. The seed on the card retraces any walk exactly.

Every result here is drawn using crypto.getRandomValues() -- the Web Crypto API's cryptographically secure randomness -- instead of Math.random(), so it's genuinely unpredictable, not just statistically random. Learn more.

What people use it for

Generative art to generate until one feels right -- then copy as SVG for posters, covers, or plotter drawings, where single-stroke line art like this shines. It's also a quiet demonstration of random-walk mathematics: watch how the trails knot near the centre and only rarely commit to the rim.

How it works

Each press draws a 32-bit seed from the site's cryptographically secure randomness and walks from it: one to three walkers, each with its own step length, turning wobble, and 500 to 1,100 steps, heading nudged by a bounded random amount every step, steered back toward the centre whenever it reaches the rim. About half of the seeds replicate the finished trails with rotational symmetry. Same seed, same wander, down to the last kink.

Common questions

Why do the trails cluster near the middle?

That's random-walk mathematics at work: after n steps a walker has typically strayed only about √n step-lengths from where it started, so the centre gets revisited constantly while the rim stays rare.

Can I get the same drawing back?

Yes -- every turn of every walker is determined by the seed stamped on the card.

Can I plot or print these?

They're ideal for it -- the SVG copy button exports the trails as clean stroked paths, exactly what pen plotters and vector editors want.

Related Generators

Coat of Arms · Mandala · Maze · Game of Life · Langton's Ant · Fractal

All Pattern generators

Browse all generators