Almost all lotteries around the world work pretty close to the same way.
If a person chooses the long term payout, they usually buy an annuity for the winner, which makes the payments, and they keep the big money.
I am not sure however of some states/countries self-manage the annuity and just use the funds in their own market account.
Rick
Universal4