Does netlogo extension rngs work in the new version? -
building off last post, i'm trying draw random-beta distribution using rngs extension of netlogo none of primitives seem working me. extension (build netlogo 4.1) work new version? if not, there new extension can me draw distribution?
if does, have assume it's code error on part. per guide at: https://github.com/netlogo/netlogo/wiki/extensions code currently:
extensions [rngs] setup make_turtles end make_turtles create-turtles 10000 ask turtles [ rngs: init rngs: set-seed let dist rngs: rnd-beta random-float 999 0.9 0.5 set target_factor dist ] end
this first time i'm employing extension may confused how work, though have rtfm, me guide says do...
summary of errors: code above "nothing named rngs has been defined" if remove ":" "nothing named init has been defined" looks me it's not reading primitives correctly, or employing wrong?
it looks have syntax error:
rngs: init
should rngs:init
. note there no space after colon.
the "no-space-after-the-colon rule" should case all extensions when calling procedures (i.e. table:make
or array:item
).
Comments
Post a Comment