add simulation for general discrete distributions