I know this is a really old thread but, to avoid building a random foul word generator, there's an easy method to do this.
SELECT REPLACE(CONVERT(CHAR(36),NEWID())+CONVERT(CHAR(36),NEWID()),'-','')
p.s. This does sound like an interview question.
--Jeff Moden
Change is inevitable... Change for the better is not.