Q:

jmeter random variable creates same number for all sampler requests

In a thread group, there are more than one http request sampler. I need to send a number with each of these requests. This number should be different for each of these requests. When I used Jmeter Random variable to get a random number every time for every request. What I was thinking that within one thread when I will call this variable for n times within n requests, it will give a different number every time, however it is giving same number in every call.
Please help suggest the way to get a random number every time when this is required within a single thread in different samplers.

A:

If you need to generate random number within the thread for each sampler, use Random function.
${__Random(1,100)} - will generate a random number between 1 and 100.

