title: Jmeter : Increment count of user variable for n user(thread) and n request
body: <p>I have Jmeter test with following scenario:</p>
  
  <pre><code>Thread (5 in number)
    -&gt; counter X (X value 0, increment by 1 till 10)
    -&gt; req1 uses X
    -&gt; req2 uses X
  </code></pre>
  
  <p>Now what I want to achieve is that, for each user and each request the value of X should increment without overlapping/repeating i.e If I run it for 5 user * 2 runs = 10 request, than value of X for each request should very from 1 to 10 without repetition.</p>
  
  <p>But above approach does not work as the each user the counter start from 0 so I get duplicate X in request made, something like </p>
  
  <pre><code>user1 -&gt; req1 X = 0, 
  user1 -&gt; req2 X = 1
  user2 -&gt; req1 X = 0
  user2 -&gt; req2 X = 1
  </code></pre>
  
  <p>I tried to use user defined variable with :
  bean shell  pre-process still the same issue.
  even the ${__intSum(${X},1,X)} does not solve the issue.
  even tried ${__counter(TRUE,X)} does not solve the issue.</p>