The if(ran_num == 0|1|2) parts are useless. There is no difference in the document.write for any of them.
Actually, the if statements for the same document.writes are necessary. Unless there's some way to cover all the if statements into just one(which I'm sure there is, I just don't know about it...hehe), then you need to cover all possible outcomes or else you'll simply get a blank spot where your script should go.
It's also good to have them all separate like I have for the reason of formatting. In a real life situation, the stories would probably be quite different, and formatting them dynamically would require 3 different document.writes.