Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main // define main project package
- // import needed packages
- import (
- "fmt"
- "math/rand"
- "time"
- )
- // list of words
- var words = []string{"aback", "abaft", "abandoned", "abashed", "aberrant", "abhorrent", "abiding", "abject", "ablaze", "able", "abnormal", "innocent", "inquisitive", "insidious", "instinctive", "intelligent", "interesting", "internal", "invincible", "irate", "irritating", "itchy", "jaded", "jagged", "jazzy", "jealous", "jittery", "jobless", "jolly", "joyous", "judicious", "juicy", "jumbled", "jumpy", "juvenile", "kaput", "keen", "kind", "kindhearted", "kindly", "knotty"}
- func main() {
- rand.Seed(time.Now().Unix())
- word := rand.Intn(len(words))
- selected_word := words[word]
- // Print out the selected word
- fmt.Println(selected_word)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement