This was an idea proposed by Lasse Fischer and Aaditya Ramdas get around the pre-specification of the number of random permutations to test in the monte carlo version of the permutation test.

References

  • Sequential permutation testing by betting, Fischer and Ramdas.