This was an idea proposed by Fischer and Ramdas get around the pre-specification of the number of random permutations to test in the monte carlo version of the permutation test. They
One uses the game-theoretic statistics framework to bet on the ranks of the observations.
References
- Sequential permutation testing by betting, Fischer and Ramdas.