title: How to define a variable with random values in Smarty
body: <p>I need to assign a variable which will be used to create the id label for some html elements.</p>
  
  <p>And it needs to be unique.</p>
  
  <p>I tried</p>
  
  <pre><code>{assign var=unique_id value=`10|mt_rand:20`}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>{math equation='rand(10,100)'}
  </code></pre>
  
  <p>But I don't know how to use the result</p>
  
  <p>I don't have any other ideas</p>