In Shifu, only Random#nextDouble algorithm are used. Check if any kind of other sampling algorithm can be used.
Check sampling algorithm, what is down sampling and how down sampling can be used in Shifu, how to make sure distributions is the same before and after sampling.