You should think about the outcome because it will automatically require to make a good process. Having good and better progress each day will inspire and motivates you to go farther to have a good outcome, one of the basics in life.
In the lottery, there's no real process there since you'll just gonna bet and done unlike in the other gambling game that requires strategy and better gameplay to have a good outcome.
The two are both important in a way that it will become the basis of your state in gambling. Process is important, yes, but what if you do you 100% effort but still you fail? Because gambling is also about luck. You can't force luck to let you win, it is very rare. The outcome is still important in some way, it will let you become inspired. If you lose , then try harder, if you win, then try to improve more. Focus on the mindset that they are both essential, it is not that the only important is the process or outcome but both. You can't prevent losses, no matter how good you are in gambling but if you're unlucky, you have nothing to do to prevent that. Try to practice risk management to reduce bad outcomes.