Thread:Project:Support desk/Random - without link (novice)/reply (3)

Yes, you can put it anywhere in the page's text.

I can't help you write javascript, but mayve if you can put a link to Special:RandomInCategory like this inside your frame.