I live in Spain. I dislike slot machines and, a long time ago, while a friend was wasting his money, I made a quick calculation. Given the number of options and the prizes, if you assumed randomness, one in three coins he inserted would have produced a prize, even the smallest, that was reimbursement.
But that wasn't what happened. It was more of a prize for one in seven coins or maybe one in ten. My friend knew more than enough maths to understand what I told him, but he said he knew, right? (he didn't) and that the question was to wait for the moment the machine was loaded. I realized it was just an addiction.
And yes, at least then and there it was legal.