title: How to implement Random sleep in golang
body: <p>I am trying to implement random time sleep (in Golang)</p>
  
  <pre><code>r := rand.Intn(10)
  time.Sleep(100 * time.Millisecond)  //working 
  time.Sleep(r * time.Microsecond)    // Not working (mismatched types int and time.Duration)
  </code></pre>