Define a shape of known volume that contains the area of that function. Generate random points inside the shape and count the proportion of points inside the function to the total number of points. The rest is trivial and left as an exercise to the reader.
Next time use
>>>/sci/sqt