randomPxcor | R Documentation |
pxcor
Report n
random pxcor
coordinates within the world
's extent.
randomPxcor(world, n)
## S4 method for signature 'worldNLR,numeric'
randomPxcor(world, n)
world |
|
n |
Integer. |
Integer. Vector of length n
of pxcor
coordinates.
Sarah Bauduin
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.
https://ccl.northwestern.edu/netlogo/docs/dictionary.html#random-pcor
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9)
pxcor <- randomPxcor(world = w1, n = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.