Выберите случайный список FRO Go
package main
import (
"fmt"
"math/rand"
)
func main() {
in := []int{2, 5, 6}
randomIndex := rand.Intn(len(in))
pick := in[randomIndex]
fmt.Println(pick)
}
Nutty Nightingale