this was the tutorial I followed, STEP-BY-STEP, to randomize my Pokemon X game.
Does require some patience. Also, I tired playing it on Citra, the 3DS Emulator, but sitll cannot figure out how to do that quite yet, but does work on my 3DS.
Hope this helps out.