package main import ( "math/rand" "time" ) func genMessage(messageList []string) string { rand.Seed(time.Now().UnixNano()) n := rand.Int() % len(messageList) return messageList[n] }