elemen acak dalam arry 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