Go Package math

From NovaOrdis Knowledge Base
Revision as of 22:14, 6 September 2023 by Ovidiu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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