From: Max Williams Date: 2009-09-02T18:27:41+09:00 Subject: Re: Nice algorithm for 'spreading' indexes across an array? ah yes, in the case where you have repeated elements it goes wrong. In this particular case the elements will always be unique (they will always be numbers 1 to n in fact) but you're right, your first method is more general. thanks again max -- Posted via http://www.ruby-forum.com/.