RTFM ;-) The Switch Controller can be combined with a suitable variable (N).
Just define the variable to have the values 0,1,2 for the relevant percentage of the time. I think this was discussed on this list a few months ago. Basic procedure: r=random integer, 1-100 N=0 if 0 < r <= 75 N=1 if 75 < r <= 95 N=2 if 95 < r This can be done in a JavaScript or BeanShell function. S. On 23/03/06, Peter Lin <[EMAIL PROTECTED]> wrote: > I would look at one of the controllers and see which one is closest to what > you need and then start from there. > > the controllers are in the components folder I believe, so that's where the > stuff is. > > peter > > > On 3/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hi Peter, > > > > Thanks for the quick response. I'd kind of figured that I'd have > > to get coding. Given my requirements, do you have any recommendations as > > where I should start? Should I just try extending GenericController, or > > start from scratch with something that implements Controller, or....? > > > > > > Brendan > > > > > > "Peter Lin" <[EMAIL PROTECTED]> wrote on 23/03/2006 16:21:14: > > > > : that sounds pretty advanced. off the top of my head, I don't know of an > > : easy way to achieve the desired effect. maybe others will have > > suggestions > > : > > : peter > > : > > : > > : On 3/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > : > > > : > Hi, > > : > > > : > I have a requirement to be able to select the sampler instance > > : > being executed based on a probability value. For example, I will (or, > > : > really, would like to) have a controller with say three samplers -- > > one of > > : > which must be executed every time through the script, based on a > > selection > > : > probability. So, if the values were 70%, 25%, and 5%, then seventy > > : > percent of the time, the first sampler would be executed, and so on. > > I've > > : > looked at the ThroughputController, but based on the JavaDoc comments, > > it > > : > seems as if the it will execute its children a certain percentage of > > the > > : > times through the script, and if I had three separate instances of it > > : > there isn't (I could be wrong, of course) any means of ensuring that > > only > > : > one of the three executed each time -- or that one of the three always > > : > executed. Is there some magic that I can work in the configuration to > > get > > : > this to work, or will I have to write a controller to deal with this > > : > situation? > > : > > > : > > > : > Thanks, > > : > > > : > Brendan > > : > > > : > --------------------------------------------------------------------- > > : > To unsubscribe, e-mail: [EMAIL PROTECTED] > > : > For additional commands, e-mail: [EMAIL PROTECTED] > > : > > > : > > > : > > : ________________________________________________________________________ > > : This e-mail has been scanned for all viruses by Star. The > > : service is powered by MessageLabs. For more information on a proactive > > : anti-virus service working around the clock, around the globe, visit: > > : http://www.star.net.uk > > : ________________________________________________________________________ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

