I try to come up with melodies and riffs that catch my ear, and then I piece 'em together until something (hopefully) slightly catchy and coherent emerges. To quote the late great Mississippi John Hurt: "I just make it sound like I think it ought to."
Cheers from Winnipeg, Canada, y'all! Go, Jets, go!!!