Really, how would it do that?
Quoted from the Smogon website: "There are many seemingly random events in Pokémon: the IVs and natures of the Pokémon that you capture or breed, the number of steps an NPC walks before turning, or the odds that your newly hatched Totodile is shiny. As it turns out, these events are all governed by the output of a class of mathematical formulas, which are known as pseudo random number generators. The word "pseudo", often used to paint things as "fraudulent" or "false", is very appropriate in this case. Even though the numbers output by these formulas may appear to be random, they are not. Each sequence begins with a single number, often referred to as a seed, and continues on in a predictable pattern.
As the seed determines the sequence of numbers that will follow, it is important that it is different each and every time you play. If the same seed was chosen each time, the pattern of numbers, and how they affect the game, would be noticeable over time, breaking the illusion of randomness. To alleviate this potential problem, the developers decided to create the seed using something that should be different every time you play: the date and time on your Nintendo DS. By doing some light math on the individual components (year, month, hours, etc.) of the date and time, a "unique" seed is created each time you start the game.
There is an obvious flaw in this technique; we can change the date and time on our Nintendo DS systems before we start the game. With knowledge of how the date and time affect the seed, it is possible to choose a combination that yields a desirable result, allowing us to control the sequence of pseudo-random numbers that is generated. Coupled with the knowledge of how the game uses those numbers to create Pokémon, we become the creators, picking and choosing desirable traits, removing any remaining vestiges of randomicity."
Let's say you want to breed a Totodile. The Totodile will have a random stats, all his stats (hp, attack, defense, etc.) will be generated. However, some wiseguys discovered that the stats given to the pokemon isn't random, but follows a pattern. If you know the pattern, you can affect the game. Stats given to pokemon is roughly the same as whether a pokemon will be shiny or not, it follows a pattern aswell. I can't really explain it better, but have a look at the second link in my previous post. Take a look at the steps taken, I bet 95% of the people who do it, have no clue what they are actually doing It's just move to a certain spot with certain pokemon in your party, Reset the game and write down the time shown on the startup, and continue with the other steps. It doesn't make sense at all to me, but it works lol. Some consider it cheating, others don't. Most large communities approve of this method, however I'm not a big fan. It's like playing God of the pokemon in a way, deciding what genes the pokemon will get and what colour (shinyness).