Rejection Sampling is a method used in sambia's function 'costing' (Krautenbacher et al, 2017).
Useful links