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:39:11 +0900

Hi,

this won't be definitely of much help, but I think that in order to
help people help you, it is advisable to describe better how you are
*not* achieving what you want to accomplish, ideally providing the
list gurus with an URL pointer to a nice tar-gzipped, self-contained,
little piece of code that reproduces _the problem_ :-)

I don't mean to be harsh; you will be surprised with the
response. From my experience, it is worth the (little) effort :-)

Cheers,

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]