If you find a shiny or are trying to get a special Pokémon, a Master Ball is the only way to make a 100% capture rate. Here's the code for unlimited Master Balls, which means you will catch every single thing you see: 82025840 0001.