NET INCOME PER SHARE (Details) - shares
3 Months Ended 6 Months Ended
Apr. 30, 2017
Apr. 30, 2016
Apr. 30, 2017
Apr. 30, 2016
Antidilutive Securities Excluded from EPS Computation        
Document Period End Date     Apr. 30, 2017  
Stock Options [Member]        
Antidilutive Securities Excluded from EPS Computation        
Antidilutive Securities Excluded from Computation of Earnings Per Share, Number 0 1,700,000 0 1,700,000
Stock Options, ESPP, LTPP and restricted stock combined exercise price, unamortized fair value, excess tax benefits or shortfalls greater than average market price [Member] [Member]        
Antidilutive Securities Excluded from EPS Computation        
Antidilutive Securities Excluded from Computation of Earnings Per Share, Number 10,000 30,000 42,000 23,100