Well, it isn't about training. The best way to do it is to breed and hope for the proper IV allocation. The downside is this will cost you 1 speed IV.
You will need odd numbered hp, atk, sp atk, def and sp def IVs and an even numbered speed IV.
Hidden powers are based on the even/odd spread of IVs.
I'll avoid cross posting links to other sites, but you can Google "hidden power" chart to assist you.
Do you know how to breed IVs?