That's not quite the optimum solution - what if you accidentally played the same numbers a million times, instead of a million different sets of numbers? So you should make sure you spread out your plays. However, I believe spreading them randomly is "good enough": the interesting maths only improves your edge a tiny amount.