Next: Problem: Spontaneous Decay Simulation
Up: Random Walk Simulation
Previous: Random Walk Simulation
Write a program which simulates a random walk
-
Start at the origin and use your computer to take a two dimensional
random walk with unit steps.
-
After each step calculate R, your exact distance from the origin and
record it together with N, the total number of steps up to that
point.
-
Plot R vs. . Is the relation linear?
-
Try this with different methods
for generating 2-D unit steps and (if
available) with different random number generators. Can you see
any difference?
Some source code available in:
C, FORTRAN
A plot showing the
importance of which random number generator to use.
Next: Problem: Spontaneous Decay Simulation
Up: Random Walk Simulation
Previous: Random Walk Simulation