23 lines
275 B
Go
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)
|
|
}
|