title: Generating a random number using a timer in capl
body: <p>I was trying to generate a random number in CAPL program (similar to C language) using timers.
  Say I have a timer X and I start it </p>
  
  <pre><code>/****Timer start****/
  on start
  { 
    settimer (x,20000);   // setting the timer for 20 secs
  }
  </code></pre>
  
  <p>Now I need a random number only between 300ms to 20 secs with a resolution of 500ms.
  CAPL has a inbuilt function called random() to do this.</p>
  
  <p>I did like </p>
  
  <pre><code>int random(int x);
  </code></pre>
  
  <p>Now how can I make sure that I get a random value only with resolution of 500ms?</p>
  
  <p>Any suggestions?</p>