you probably should use java.util.Random instead of the Random function
On Mon, May 20, 2013 at 9:34 PM, [email protected] <[email protected]>wrote: > I am using __Random() method in my post processing beanshell script. But > somehow I am not able to access the value of the variable. Code snippet is > as following. > > maxRange = vars.get("accountIdRange") > > //Here I am passing the maxRange value at runtime to get some random number > between 1 and maxRange. > //1st version > randomAccountId=${__Random(1, maxRange)}; > //2nd version > randomAccountId=__Random(1, ${maxRange}); > > > I tried with these two different version and both of them didn't work. I am > not even sure about the correct syntax. > Please suggest the correct syntax. If I am missing something then please > point out. > > Thank you > > > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/passing-variable-in-Random-method-call-in-Beanshell-tp5716932.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
