Scatter Example
Model was written in NetLogo 5.0.4
•
Viewed 177 times
•
Downloaded 37 times
•
Run 0 times
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
Comments and Questions
Please start the discussion about this model!
(You'll first need to log in.)
Click to Run Model
;; setup clears all and then creates a lot of turtles to setup clear-all crt 300 end ;; scatter1 sets the x and y coordinates of each ;; turtle randomly to scatter1 setup ask turtles [ setxy random-xcor random-ycor ] end ;; scatter2 sends the turtles forward a random amount in random directions ;; using "jump" instead of "fd" makes it happen faster to scatter2 setup ask turtles [ rt random 360 jump random-float max-pxcor ] end to scatter3 setup ask turtles [ move-to one-of patches ;; go to the center of a random patch ] end ; Public Domain: ; To the extent possible under law, Uri Wilensky has waived all ; copyright and related or neighboring rights to this model.
There are 10 versions of this model.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
Scatter Example.png | preview | Preview for 'Scatter Example' | over 11 years ago, by Uri Wilensky | Download |
This model does not have any ancestors.
This model does not have any descendants.