By saying flawless, we mean Individual Values or Deter Values of 31 HP 31 Atk 31 Def 31 Speed 31 SpA and 31 SpDef.
Unlike Effort Values, IV's are generated when breeding, capturing a Pokemon from the Wild, or stationary Pokemons.
You can get them through the RNG Abuse method. I got mine from breeding and trading with others. :]