I need to generate an unique random number in Golang. I have a simple ruby code for it:
(0...16).map { rand(10).to_s }.join
So, effectively i need to generate a number of length 16 where each digit is randomly picked up from [0-9]. I did not understand how random.Intn(n) function can help me. Any idea how can I do this?