From: Simon Schuster Date: 2007-10-01T05:49:35+09:00 Subject: got a range from an array, but looking for other ways of doing it a is an array. I'm trying to chop the first and last third off. or, choose only the middle third. can be a rough third. a.length # 4808 range = a.length * 0.3 # 1442.4 range = range.to_i # 1442 rangetop = a.length / 2 + range # 3846 rangebottom = a.length / 2 - range # 962 a[rangebottom..rangetop].length # 2885