Random Walk Generator
Create a reproducible sequence whose next position follows a random step.
Also known as: drunkard walk
seeded
Output
About this tool, tips & examples
What it does
The Random Walk Generator produces the classic drunkard’s-walk sequence: each value is the previous one plus a random step bounded by your maximum step size, for up to 10,000 steps. The result is a wandering, trend-free series — the raw material of countless simulations — exported as CSV or JSON and exactly reproducible from its seed.
Common use cases
- Teaching probability — the canonical example of cumulative randomness: individual steps are tiny, yet the path drifts surprisingly far.
- Chart and dashboard fixtures — wandering series that look like organic metrics without implying a trend.
- Algorithm testing — smoothing, change-point, and drawdown logic against data whose construction you know.
- Simulation building blocks — position, price, and queue-length toy models start here.
Settings
- Steps — 1 to 10,000 points in the path.
- Maximum step — the bound on each move’s size; larger steps mean a wilder path.
- Seed — the same seed and settings regenerate the identical walk.
Privacy note
Walks are computed locally in your browser; nothing is uploaded. The output is a mathematical simulation — not market data, and predictive of nothing.
FAQ
Why does the path wander so far from zero? Expected distance from the origin grows like √n — after 10,000 steps, typically ~100 step-sizes away. Individually fair steps still accumulate; that’s the punchline of the whole topic.
Is this the same as Brownian motion? Brownian motion is the continuous limit of this discrete walk (with Gaussian increments and drift/volatility controls) — see its dedicated generator. For a charted, 2D-capable classroom version, use the Random Walk Simulator.
Will two seeds ever look alike? Broad statistics match; the paths themselves diverge completely — a nice demonstration of variance in itself.