Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

NetLogoR (version 0.3.9)

randomPxcor: Random pxcor

Description

Report n random pxcor coordinates within the world's extent.

Usage

randomPxcor(world, n)

# S4 method for worldNLR,numeric randomPxcor(world, n)

Arguments

world

WorldMatrix or worldArray object.

n

Integer.

Value

Integer. Vector of length n of pxcor coordinates.

References

Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.

See Also

https://ccl.northwestern.edu/netlogo/docs/dictionary.html#random-pcor

Examples

Run this code
# NOT RUN {
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9)
pxcor <- randomPxcor(world = w1, n = 10)


# }

Run the code above in your browser using DataLab