refactored division method

added Integer factor method and select random from Array.