From: jko170 Date: 2009-01-21T00:38:32+09:00 Subject: Re: 10 numbers in between 2 numbers On Jan 20, 1:12 am, Tim Greer wrote: > 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! Sorry everyone, yes 10 numbers and dates spread our evenly. Thanks for the replies!