From: Tim Greer Date: 2009-01-20T16:13:38+09:00 Subject: Re: 10 numbers in between 2 numbers jko170 wrote: > How can I get an array of 10 numbers in between two numbers? > > (1..500).to_a > > How can I turn the above into an array of ten numbers in between 1 and > 500 (including 1 and 500)? 10 numbers randomly, or spread out evenly (ish), such as 1, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500 (though that's 11 and not exactly even). Can you elaborate? -- Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc. Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers and Custom Hosting. 24/7 support, 30 day guarantee, secure servers. Industry's most experienced staff! -- Web Hosting With Muscle!