Go Package math

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Random Numbers

https://gobyexample.com/random-numbers

To get a pseudo-random non-negative int between 0 (inclusive) and n (exclusive), use:

rand.Intn(n int) int