modified to have separated funcitons for obtaining random boxes and computing the integral based on user input coordinate
changed random number generation, implemented random box integral