RandIntSliceInRange
Returns a slice of n
random integers in the specified range.
- Use
make()
to create an appropriate slice. - Use
range
to iterate over the slice,rand.Intn()
to generate random numbers between0
and the distance betweenmin
andmax
, addingmin
to them.