Go Package rand
Jump to navigation
Jump to search
Internal
Overview
rand.New()
Generating a new random integer:
i := rand.New(rand.NewSource(time.Now().UnixNano())).Int()
Generating a new random integer:
i := rand.New(rand.NewSource(time.Now().UnixNano())).Int()