fixes for rand implementation
Merge branch 'master' of https://github.com/SmallPlanetUnity/PlanetUnity2