You're right, this actually does vary by jurisdiction. I looked into and was quite surprised that the UK allows something called "compensated game control" to adjust the odds dynamically so the observed payout matches the expected one. [0]
Nevada has the opposite rule: machines must only incorporate chance when paying out and the theoretical payout is what the gaming commission analyzes. They can't dynamically adjust odds to favor a preferred payout. [1]