diff options
Diffstat (limited to 'extra/twentyq.go')
-rw-r--r-- | extra/twentyq.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/twentyq.go b/extra/twentyq.go new file mode 100644 index 0000000..30c08cc --- /dev/null +++ b/extra/twentyq.go @@ -0,0 +1,11 @@ +package extra + +import "math/rand" + +var ( + chars = []string{"Shrek", "Garfield", "Jack the Ripper"} +) + +func GetRandomChar() string { + return chars[rand.Intn(len(chars))] +} |