A Randomized Approach to Tight Privacy Accounting