if (rand(100) > 5 ){ print "It's going to be sunny!\n"; } else { print "Slight chance of showers today.\n"; }