13 lines
243 B
Go
13 lines
243 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"math/rand"
|
||
|
)
|
||
|
|
||
|
func getFoodItem() rune {
|
||
|
var foods string = "🐵🐱🐷🐁🐇🐿🦇🐓🐣🐸🦎🍎🍏"
|
||
|
foodsRune := []rune(foods)
|
||
|
randomIndex := rand.Intn(len(foodsRune))
|
||
|
return foodsRune[randomIndex]
|
||
|
}
|