Alterations to Selenium Function for generating random numbers in specified range; Added comments