add CreatePlanet and put planet in solar system

This commit is contained in:
arnaucube
2019-06-13 22:41:47 +02:00
parent 0cd29328b4
commit 5965f2dec1
11 changed files with 141 additions and 45 deletions

7
utils/utils.go Normal file
View File

@@ -0,0 +1,7 @@
package utils
import "math/rand"
func RandInRange(min, max int) int64 {
return int64(rand.Intn(max-min) + min)
}