Mathematical principle
Keno is a hypergeometric draw: 10 numbers are drawn from 40, and you pick spot numbers. The probability of exactly hits matches is:
P(hits | spot) = [C(10, hits) · C(30, spot − hits)] / C(40, spot)
Expected return (RTP) for a spot is the probability-weighted sum of payouts:
RTP(spot) = Σ(hits=0..spot) P(hits | spot) · payout[spot][hits]
Where C(n, k) is the binomial coefficient (“n choose k”).