I've read here that NPC trainers' Pokemon do have natures (from Gen III onward) and IV's, and I've seen it mentioned in a few places that at least the Elite Four's Pokemon have EV's as well, but I've found no exact or even, seemingly, certain information on the subject. Basically, are NPC trainers' Pokemon's natures, IV's, and EV's randomly generated, or, if they aren't, what are they? I'm most interested in information pertaining to Emerald, but any such information pertaining to any of the other games would also be very much appreciated.
Also, please cite your sources (or l33t hax0r credentials as the case may be).