From: Brian Ross Date: 2008-08-18T07:07:13+09:00 Subject: Creating an array with incrementing values up to a certain number ------=_Part_6468_1256672.1219011026976 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, Another basic question, thanks for the help on the last one. I wanted to come up with the above described program and came up with this: # array.rb start a = [1] x = 0 while x < 99 a[(x+1)] = (a[x] + 1) x = x + 1 end p a # array.rb end This worked fine, but is there a more elegant way of doing this? It seems a bit clumsy. Brian ------=_Part_6468_1256672.1219011026976--