Comment mettre en œuvre Aléatoire dormir dans golang

Je suis en train de mettre en œuvre aléatoire le temps de sommeil (en Golang)

r := rand.Intn(10)
time.Sleep(100 * time.Millisecond)  //working 
time.Sleep(r * time.Microsecond)    //Not working (mismatched types int and time.Duration)

OriginalL'auteur Ravichandra | 2017-06-14