I would like to calculate profitability of various mining strategies. For that, i need to simulate many random mining intervals, that reflect probabilistic distribution of real block mining. What would be such formula that could use random number generator?