Riemann Sum - number of subintervals

Shows the value of an approximating Riemann sum and Trapepzoid sum also. Position of selected point in each interval is randomly chosen.
Change a and b by points along X-axis. Change n, the number of intervals, and p, the position in the interval where the function is evaluated by using the sliders