Forum:When to shuffle?

Let's say i use the card "Tuning". First i grab my tuner synchron, and then i mill for 1. Do i mill first? Or do i shuffle? Is there a rule stating that you only shuffle after resolving the card's effect?