It's simpleYou go out, run around in the water, grass, caves, EVERYWHERE, there's a 1/8192 chance that they'll be shiny. But there are also ways to improve the chance of Pokemon being shiny. You can use the Poke Radar, Masuda Method, etc. but you should read up on all that here
Sources: Common Pokemon sense, experience, and Bulbapedia.