Basic Simulation -- Random Walk -- Template

by phonner
  scripts
  sprites
See inside
Instructions

Basic Simulation -- Random Walk

Your task is to create a "Random Walk" simulation that repeats the following experiment Number_of_Trials times:

(1) "Resets" the walk
(2) Has the sprite repeat the following until it touches the circle:
(a) Point in a random direction
(b) Move a "step" [some arbitrary number of units, say 10]
(3) Records the length of the walk, in steps, in a list
(4) Computes and shows the average walk length

Notes and Credits

Shared: 2 Aug 2016 Modified: 2 Aug 2016
Favorite this project 0
Love this project 0
Total views 15
View the remix tree  2
  
More projects by phonner