From: "Pål Bergström" Date: 2009-09-14T17:37:49+09:00 Subject: Finding difference in a number range This is my problem. I have a scale from 0 to 15 and five different elements with their own position on that scale. How can I understand if they are spread all over the scale, have different positions on the scale, or if they are close and nearby each-other? These are close: 2,3,4,3,2 These are not so close: 2,4,3,12,15 These are spread: 0,5,8,12,15 -- Posted via http://www.ruby-forum.com/.