By 1000 times...?
Best practice is playing along to the radio, whatever comes on, play along to it.
Learning songs all the way through rather than just learning 'signature riffs'.
Choosing a key and a scale and noodling in it over as much of the neck as possible, changing styles, tempo and the scale but NEVER breaking out of the key.
A good video on YT suggests playing a riff fast three time, then doubling your tempo for one time round, then back to normal and so on.