title: how to generate random value in each time I run the lua script
body: <p>I have written a lua script named <b>"lua_rand_gen"</b> which contains following code:<br></p>
  
  <pre><code>function random_number_func()
      math.randomseed(os.time())
      return (math.random(100000000,999999999))
  end
  
  print (random_number_func())
  </code></pre>
  
  <p><br>when I run the <b>lua_rand_gen</b> script in the terminal in loop , the above function is not generating randome values as shown :<br></p>
  
  <pre><code>for ((i=0;i&lt;=5;i++)); do lua lua_rand_gen; done
  
  717952767
  717952767
  717952767
  717952767
  717952767
  717952767
  </code></pre>
  
  <p><br>I know this is because <b>os.time()</b> doesn't change till one second. So, how can I get Random number in lua if the time difference between running the lua script is less than 1 sec.</p>