swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getIntegerWithMin$withMax(int, int)


From: Marcus G. Daniels
Subject: Re: getIntegerWithMin$withMax(int, int)
Date: 21 Sep 2001 08:08:45 -0600
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7

>>>>> "FW" == Fred Wan <address@hidden> writes:

FW> I'm trying to use getIntegerWithMin$withMax(int, int) but
FW> compiling with the latest swarm version yields the following error
FW> message:

FW> Error: H:\swarm\java\A3DMAS31\ModelSwarm.java(159): Method
FW> getIntegerWithMin$withMax(int, int) not found in
FW> swarm.SwarmEnvironmentImpl

I don't recall anything changing.  Here's an example.

import swarm.Globals;

public class GetRandom {
    static void main (String args []) {
        Globals.env.initSwarm ("random", "0.0", "address@hidden", args);
        int val;

        val = Globals.env.uniformIntRand.getIntegerWithMin$withMax (0, 10);

        System.out.println (val);
    }
}

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]