drunkenSim2: Drunken-Turtle Simulation (Graph Version)

View source: R/drunkenSim2.R

drunkenSim2R Documentation

Drunken-Turtle Simulation (Graph Version)

Description

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(s)

Homer White homerhanumat@gmail.com

Examples

## Not run: 
drunkenSim2(seed = 3030)

## End(Not run)

homerhanumat/bcscr documentation built on Jan. 14, 2023, 4 a.m.