not only is it very possible to get an alolan raichu with any sort of special value (that you'd get normally from the wild) from this trade, but because you can do it infinitely, there's actually an optimal shiny hunting method in here. one that... requires no input at all?
the jwittz figured out that using a massive batch of pre-caught raichu, he could simply mash A while sanding next to the CPU in order to infinitely trade, until his cache ran out. he then went about finding a way to remotely press A, so he could do anything else, then come back after all the trades were done, and check the pokedex for the new shiny. search "Jwittz pressing a button for rare Pokemon". It may not be pretty, but he gets the job done in the end, after a lot of funny fails.