Just a guess, but maybe all instances of the Random class are being created with the same seed?
Gerard [EMAIL PROTECTED] 12/18/2002 10:40 PM Please respond to jmeter-user To: [EMAIL PROTECTED]@FiservMail cc: (bcc: Gerard Manko/BSG/Pittsburgh/Fiserv) Subject: Re: Random controller not applied per thread Please see the attached document.
This may be due to the the Random class works. I'd have to look it up, but each thread gets its own instance of RandomController, each of which creates an instance of Random on instantiation. However, if this all happens quickly, then each Random instance may be providing the same list of random numbers. Like I said, it's hard to tell since I don't know how Random works. Other than that, I have no explanation - all the variables are non-static, and RandomController gets cloned for each thread. The fact that it extends InterleaveController has nothing to do with it far as I can tell. -Mike On 19 Dec 2002 at 14:18, Scott Eade wrote: > RandomController extends InterleaveController. While it makes sense for > Interleave controller to apply across all threads, I somehow expected that a > Random controller would be applied on a per thread basis. To be more > specific, here is the current behaviour: > > Random Controller > Request 1 > Request 2 > Request 3 > > If I have 1 loop and 20 threads, all will execute the same request (which > will be chosen randomly). > > What I was expecting was for each of the 20 threads to be randomly be > allocated to one of the three requests. > > Is this the way it is meant to work? > > Cheers, > > Scott > -- > Scott Eade > Backstage Technologies Pty. Ltd. > http://www.backstagetech.com.au > .Mac Chat/AIM: seade at mac dot com > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>