"Sample from the univariate PDF using the acceptance-rejection method. Supremum distribution is interval-flat over domain, with value max. Returns the list of samples and the total number of candidates."
;; See 1990 Flury, SLAC slides id:e48523a5-a0d5-4aa2-899b-14f8bd86bb32
(iter(withnumber-found=0)
(forcountfrom0)
(let*((y(gsl:samplerng:flat:alower-bound:bupper-bound)); sample from constant supremum distribution "g(x)"