mirror of
https://github.com/arnaucube/gogame.git
synced 2026-02-06 19:16:40 +01:00
add CreatePlanet and put planet in solar system
This commit is contained in:
7
utils/utils.go
Normal file
7
utils/utils.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package utils
|
||||
|
||||
import "math/rand"
|
||||
|
||||
func RandInRange(min, max int) int64 {
|
||||
return int64(rand.Intn(max-min) + min)
|
||||
}
|
||||
Reference in New Issue
Block a user