Golang中Fisher–Yates shuffle算法的使用

Golang中rand.Shuffle从go1.10开始,math包新增了rand.Shuffle方法。data := []int{1,2,3,4,5,6,7,8}rand.Seed(time.Now().UnixNano())rand.