Tested tool guide
Tested browser tools
Checked August 16, 2026
What Random Walk Simulator does, with a checked example
Flip a coin, move one step left or right, repeat a thousand times: that coin-toss record is a random walk, and this simulator draws it. Choose 1D or 2D, set the step count, and watch the path build point by point while the tool tallies the statistics: mean displacement, root-mean-square distance, and return visits to the origin. The surprise most people hit first: a walker whose steps average to zero does not hover near the start. Displacement stays near zero, but distance from the origin grows like the square root of the step count - 1,000 unit steps typically end about 32 units away.
Worked example
A concrete input and expected output from the current implementation.
Input
1D walk, 1,000 unit steps, repeated across 100 runs
->
Expected output
Mean final displacement: 0. Root-mean-square displacement: 31.6 (sqrt of 1,000). Typical distance from the origin: 25.2 (about 0.8 x sqrt of 1,000). The per-run endpoints scatter around the origin with a spread near 31.6.
Every step is +1 or -1 with equal probability, so the expected displacement is exactly 0 and the variance of the final position is exactly N = 1,000, making the RMS 31.6. The mean absolute displacement of a 1D symmetric walk is sqrt(2N/pi) = sqrt(2,000/pi), about 25.2, which the runs should track.