Files
old-9heroja/configuration/config.go

23 lines
275 B
Go
Raw Normal View History

2023-11-21 20:12:56 +01:00
package configuration
2023-11-30 14:49:01 +01:00
import "math/rand"
2023-11-21 20:12:56 +01:00
type Direction int
const (
North Direction = iota
East
South
West
NorthEast
SouthEast
SouthWest
NorthWest
2023-11-28 07:29:17 +01:00
PreviouslyHeld
2023-11-21 20:12:56 +01:00
)
2023-11-30 14:49:01 +01:00
func Random(min, max int) float64 {
result := min + rand.Intn(max-min)
return float64(result)
}