How long the hunt takes
A 4% slot means about one Riolu every 25 grass encounters on average. Luck can make it shorter or longer. Rustling grass, dust clouds and shadows at the ranch use the same table, so they don't change the odds.
The same grass has Eevee at 1%. You can look for both on one trip.
Skip straight to Lucario
Lucario is wild later in the game. Its best odds are 16% on Victory Road's fighters' slope at Lv 64–67. Want a Lucario on your team for the Gyms? Catch Riolu at the ranch. If you only need one for the post-game, wait for Victory Road.
Not set up yet? Start with the patch guide.