fix random generation on different platform. (problem with the range of qrand())
fix random generation on different platform. (problem with the range of qrand())

chipgw/planets-3d,chipgw/planets-3d,chipgw/planets-3d,chipgw/planets-3d