swarm-support
[Top][All Lists]
Advanced

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

Re: problem about random


From: Norberto Eiji Nawa
Subject: Re: problem about random
Date: Tue, 29 Jan 2002 19:53:04 +0900

Just a follow-up for completeness (and so people will not accuse me
that I just speak & speak :-), a modified version of simpleCBug
seems to generate random numbers in the interval 0 to 100.

http://www.his.atr.co.jp/~eiji/swarm/myUniformIntRandTest.tar.gz

E.

>>>>> On Tue, 29 Jan 2002 19:39:11 +0900, Norberto Eiji Nawa <address@hidden> 
>>>>> said:
Eiji> Hi,
Eiji> this won't be definitely of much help, but I think that in order to
Eiji> help people help you, it is advisable to describe better how you are
Eiji> *not* achieving what you want to accomplish, ideally providing the
Eiji> list gurus with an URL pointer to a nice tar-gzipped, self-contained,
Eiji> little piece of code that reproduces _the problem_ :-)
Eiji> I don't mean to be harsh; you will be surprised with the
Eiji> response. From my experience, it is worth the (little) effort :-)
Eiji> Cheers,
Eiji> Eiji

>>>>> On Tue, 29 Jan 2002 18:05:13 +0800 (CST), Snow Paul <address@hidden> said:
Snow> Hi,all
Snow> I used 
Snow> [uniformIntRand getIntegerWithMin: 0 withMax: 100];
Snow> in order to get a random integer range from 0 to
Snow> 100.To my suprise, I run the swarm application many
Snow> times but I got the same "random" value.for
Snow> instance,this time is 6 and next time also 6.I am
Snow> confused and I suspect I have to use class
Snow> UniformIntegerDist,How to do it?
Snow> Many thanks
Snow> Paul Snow
Snow> address@hidden

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