Files
old-9heroja/configuration/config.go
2023-11-30 14:49:01 +01:00

23 lines
275 B
Go

package configuration
import "math/rand"
type Direction int
const (
North Direction = iota
East
South
West
NorthEast
SouthEast
SouthWest
NorthWest
PreviouslyHeld
)
func Random(min, max int) float64 {
result := min + rand.Intn(max-min)
return float64(result)
}