NetLogo banner
 Home Page
 Download
 Models
 Community Models
 Extensions
 User Manual:
  Web version
  Printable version
  Chinese version
 FAQ
 Resources
 Contact Us

Extensions

These sample extensions demonstrate NetLogo's extensions facility, which allows NetLogo's capabilities to be extended from Java (and other JVM languages). For more information see the Extensions section of the NetLogo User Manual.

We strongly encourage extension authors to share their extensions with the NetLogo user community. (Even if your extension is not completely finished or documented, it may be still be useful to others.) Please E-mail your extension to us at feedback@ccl.northwestern.edu and we will add it here.

for NetLogo 4.1

Bundled extensions

The Java or Scala source code for the Array, Table, GoGo, Profiler, Sound, GIS, Bitmap, QTJ, Sample, and Sample-Scala extensions is included with NetLogo 4.1. Look in the extensions directory of your NetLogo installation.

Community extensions

These extensions are contributions from the user community and are not included with NetLogo. These extensions are authored by the individual contributor and are not checked by the CCL staff.

Random Number Generators (by Adam MacKenzie)

Have broadened the scope of Dr. O'Sullivan's "Multiple Random Number Generator", and it now includes all of the core Netlogo probability distributions, as well as Negative Binomial and Beta distributions.

Usage is as follows:

  • rngs:init clears all random number generators
  • rngs:set-seed <stream_id> <seed> creates a random number generator with identifier <stream_id> with a seed value (positive integer) of <seed>. Seeds of zero will be seeded from the system clock.

Probability distribution declarations are below. A random number generator must be created with the rngs:set-seed command prior to use below.

  • rngs:rnd-float <stream_id> <range> returns a uniform number between (0,range)
  • rngs:rnd-norm <stream_id> <mean> <std-dev>
  • rngs:rnd-poisson <stream_id> <mean>
  • rngs:rnd-gamma <stream_id> <alpha> <lambda>
  • rngs:rnd-exponential <stream_id> <mean>
  • rngs:rnd-negbinomial <stream> <trials> <p(success)>
  • rngs:rnd-beta <stream_id> <alpha> <beta>

Download: rngs extension for NetLogo 4.1

for NetLogo 4.0

See separate page. Note that 4.0 extensions don't work with 4.1 (unless they are recompiled for 4.1).