Randomly execute a function X out of Y times