EV training in randomizer

What is the best way to EV train in randomizers?

The EV trainers don't work in the secret bases (it gives random pokemon that have mixed EV values) and I can't use the friend safari because my game crashes when I try to login.

Nevermind, the login finally worked