On my computer sometimes distance and in-radius return the wrong answer. Whats going on?
There is a bug in Sun’s server VM (which NetLogo uses) that affects a small number of Windows users (depending on the particular CPU you have on your computer). If you’re not sure if you have this problem, run the Ants model (in the Models Library, under Sample Models -> Biology) and press the SETUP button repeatedly. The model may set up correctly the first few times, but if you have the bug, eventually the setup will fail (the food piles will not be located correctly). If you run into this problem you can work around it by using the regular, client VM instead, or by using Java 6 (instead of the Java 5 which comes bundled with NetLogo). To change to the client VM, open NetLogo 4.0.4.