swarm-support
[Top][All Lists]
Advanced

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

Re: problem about random


From: Paul E Johnson
Subject: Re: problem about random
Date: Tue, 29 Jan 2002 10:06:36 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20020104

Snow Paul wrote:

>   Hi,all
>   I used 
> [uniformIntRand getIntegerWithMin: 0 withMax: 100];
>   in order to get a random integer range from 0 to
> 100.To my suprise, I run the swarm application many
> times but I got the same "random" value.for
> instance,this time is 6 and next time also 6.I am
> confused and I suspect I have to use class
> UniformIntegerDist,How to do it?
>   Many thanks
>   Paul Snow
>   address@hidden
Is your intended usage different than that which is described in the Swarm User 
Guide?



-- 
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700


                  ==================================
   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]