How do you catch shiny Pokemon in pearl?

Shiny Pokemon appear completely at random, although you could hack the game with an Action Replay (not recommended.)