title: JMeter set variable to random option
body: <p>I've been using JMeter and I'm aware of the <code>__Random</code> and <code>__RandomString</code> functions. I need to pick a random option and store it in a variable because it will be used as part of a parameter path for multiple calls. For example:</p>
  
  <p><code>http://www.example.com/pets/{random option such as: cat, dog, parakeet}/</code></p>
  
  <p>I've tried doing simple like this, where I set the variable <code>${query}</code> to <code>one</code>, <code>two</code>, or <code>three</code> using a random controller with userdefined variables as children. This seems like it <em>should</em> work, however I always get <code>${query}</code> set to <code>three</code>.</p>
  
  <p>Any insight or ideas are will be well recieved. Thanks to all in advance.</p>