Skip to contents

A drunken turtle starts at the origin and takes unit steps, turning through a randdom angle after each step. We graph the distance from the origin as a function of step-number.

Usage

drunkenSim2(steps = 1000, seed = NULL)

Arguments

steps

the number of steps the turtle will take

seed

The user may provide a seed-value for random-number generation.

Value

side effects

Author

Homer White homerhanumat@gmail.com

Examples

if (FALSE) { # \dontrun{
drunkenSim2(seed = 3030)
} # }