From my code below I can choose from a group of random numbers 0-4 when (5) is selected as the argument for Perm. However I would like to choose random numbers from a different range such as 6-10. How would I be able to do this please?
r := rand.New(rand.NewSource(time.Now().UnixNano()))
i := r.Perm(5)
fmt.Printf("%v
", i)
fmt.Printf("%d
", i[0])
fmt.Printf("%d
", i[1])