Sh*ts and giggles

Where did the phrase "for sh*ts and giggles" come from?

I heard it used a few years back by college students. Variation of doing something for laughs?