package snakesimulator

import (
	"math/rand"
	"time"
)

func (f *Field) GenerateNextFood() {
	rand.Seed(time.Now().UnixNano())
	f.Food.X = rand.Uint32() % f.Width
	f.Food.Y = rand.Uint32() % f.Height
}