I don't know if Derek Mackay, the finance secretary, is a member of the Magic Circle, but SNP government is behaving today as if he is.
With all the build-up to this budget about cuts to local government, Mr Mackay, has - it appears - pulled a financial rabbit out of his metaphorical top hat for local government.
Here is how Mr Mackay explained it to MSPs this afternoon:
- Money... with strings attached
Now it is worth noting that in this calculation, the councils have to put up council tax by the maximum the Scottish government will allow them, 3%.
And the figure includes £120m that councils will have to give direct to headteachers in schools.
Originally the Scottish government was going to take £100m off councils and give it to headteachers, but they have done a U-turn on that after pressure from local authorities.
So this is money which has strings attached.
And it is still an innovation in Scotland for money to go direct to heads. The Scottish government insist councils cannot spent it any other way. It is, in the jargon, 'ring-fenced', as is the money for health and social care.
However, as ever with a budget, the figures are disputed.
Labour say that Page 91 of the budget document - they been looking very hard very quickly - confirms that funding for local authorities will fall by £327m in real terms in 2017/18.
The 'Local Government' budget will fall from £10.094 billion in 2016/17 to £9.646 billion in 2017/18 - a cut of £448m, Labour claim.
The 'Central Government Grants to Local Authorities' budget will increase from £218.7m to £339.5m - an increase of £121m, they say.
The combination of these two figures Labour say means a £327m cut to local councils.