added randomSystem() function to grav.new