Re: [netlogo-devel] How to add a command to draw a sample from a distribution?

21 views
Skip to first unread message

Seth Tisue

unread,
May 20, 2013, 10:27:26 AM5/20/13
to netlog...@googlegroups.com
>>>>> "serteckian" == serteckian <serte...@gmail.com> writes:

serteckian> I want to draw a sample from a discrete
serteckian> distribution.

See the Lottery Example model in the Code Examples section of the Models
Library. It's not really necessary to write an extension for this unless
the NetLogo code for this proves to be a performance bottleneck in your
particular application.

We may build this into the language in a future version of NetLogo:
https://github.com/NetLogo/NetLogo/issues/335

--
Seth Tisue | Northwestern University | http://tisue.net
developer, NetLogo: http://ccl.northwestern.edu/netlogo/
Reply all
Reply to author
Forward
0 new messages