Skip to content

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

andysanr/RandomWalker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RandomWalker

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.

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

No packages published

Languages