You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by ZK <st...@gmail.com> on 2015/11/24 18:02:21 UTC

Random function not working correctly

Hi,
I think there is an issue with the Random function as it never references
the MAXIMUM value set for the function correctly.

in order to reproduce this, I reference the random function in the name of
the Debug Sampler:
View Results Tree
Thread Group
+Debug Sampler - ${__Random(1,4,randomNumber)}    
+Debug Sampler -  ${randomNumber}

The View Results tree shows the random number generated is either: 1 or 2 or
3 but NEVER 4


Regards,
ZK





--
View this message in context: http://jmeter.512774.n5.nabble.com/Random-function-not-working-correctly-tp5723489.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Random function not working correctly

Posted by ZK <st...@gmail.com>.
thank you!!


ZK



--
View this message in context: http://jmeter.512774.n5.nabble.com/Random-function-not-working-correctly-tp5723489p5723491.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Random function not working correctly

Posted by Philippe Mouawad <p....@ubik-ingenierie.com>.
Hi,
It's a bug fixed in nightly build:
https://bz.apache.org/bugzilla/show_bug.cgi?id=57825

Regards
@philmdot

On Tue, Nov 24, 2015 at 6:02 PM, ZK <st...@gmail.com> wrote:

> Hi,
> I think there is an issue with the Random function as it never references
> the MAXIMUM value set for the function correctly.
>
> in order to reproduce this, I reference the random function in the name of
> the Debug Sampler:
> View Results Tree
> Thread Group
> +Debug Sampler - ${__Random(1,4,randomNumber)}
> +Debug Sampler -  ${randomNumber}
>
> The View Results tree shows the random number generated is either: 1 or 2
> or
> 3 but NEVER 4
>
>
> Regards,
> ZK
>
>
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Random-function-not-working-correctly-tp5723489.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>


-- 
Cordialement.
Philippe Mouawad.
Ubik-Ingénierie

UBIK LOAD PACK Web Site <http://www.ubikloadpack.com/>

UBIK LOAD PACK on TWITTER <https://twitter.com/ubikloadpack>