Math, C, Calculus, Numerical Analysis, Monte Carlo.
distribution as PDF = 1/(max-min). For example, consider the function given below and its corresponding graph. Assume that we want to find an accurate expected value or integration estimate in the range of x=[0,6]. If we use brute force , the samples taken from the ranges of x=[0,10] and x=[4,6]