How can I use fmt.Println only every 5 min
h := fmt.Sprintf("%x", word)
fmt.Println(h)
I need something like this: if time := 5 min then fmt.Println(h)
just to show (n) only every 5 min not every line
EDIT: Obviously I haven't asked the correct question.
There is a cycle which generate random digits every second.
for i := n1; i.Cmp(n2) < 0; i.Add(i, one) {
What I want is: not to show every generated variable (i) but just one in every 5 minutes.