powered by
pycor
Report n random pycor coordinates within the world's extent.
n
world
randomPycor(world, n)# S4 method for worldNLR,numeric randomPycor(world, n)
# S4 method for worldNLR,numeric randomPycor(world, n)
Integer. Vector of length n of pycor coordinates.
WorldMatrix or worldArray object.
WorldMatrix
worldArray
Integer.
Sarah Bauduin
Wilensky, U. 1999. NetLogo. https://www.netlogo.org. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.
https://docs.netlogo.org/dictionary.html#random-pcor
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9) pycor <- randomPycor(world = w1, n = 10)
Run the code above in your browser using DataLab