In order to RNG legendaries, I would have to use the re-battle code. I don't own an AR though, so unfortunately my RNG services are restricted to Pokemon that I can either breed or catch.
I can breed a Rotom and give it W-form, but once it goes into the wifi-room, it reverts back to standard form, so unless you have Platinum or HeartGold/SoulSilver, there's no way for you to get the different forms.
And I would be glad to help you learn to RNG. But since it's so complex, it would be
very difficult to help you over messages. My recommendation is to study these pages first:
http://www.smogon.com/ingame/rng/dpp_rng_intro
Then I can help you if you have specific questions. Or I can even meet you on an IRC channel sometime to walk you through it. The hardest part is really just understanding the concepts like "seed," "delay," "frame" etcetera. Actually doing the RNG-abuse is pretty easy after that.