Diamond / Pearl / Platinum: Riolu cannot be found wild. It was only obtainable via the Manaphy Egg event:
HeartGold / SoulSilver: Also event-only.
Black / White: Riolu is available in the wild, making it far more accessible.
For a DS game with wild Riolu, play Black or White (or later generations via trade).