Takes an integer command-line argument r and simulates the motion of a random walk until the random walker is at Manhattan distance r from the starting point. Prints the coordinates at each step of the walk (including the starting and ending points), treating the starting point as (0, 0). Also, prints the total number of steps taken.
-
Notifications
You must be signed in to change notification settings - Fork 0
Takes an integer command-line argument r and simulates the motion of a random walk until the random walker is at Manhattan distance r from the starting point. Prints the coordinates at each step of the walk (including the starting and ending points), treating the starting point as (0, 0). Also, prints the total number of steps taken.
andysanr/RandomWalker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Takes an integer command-line argument r and simulates the motion of a random walk until the random walker is at Manhattan distance r from the starting point. Prints the coordinates at each step of the walk (including the starting and ending points), treating the starting point as (0, 0). Also, prints the total number of steps taken.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published