Generate random numbers with custom probability value