From: Kwhamec Rojas Date: 2005-12-14T21:11:53+09:00 Subject: Re: Newer to Ruby rcoder wrote: > Just out of curiousity, what is the basic test case for this? I only > ask because an algorithm to generate 9-digit numbers that don't begin > with 7, 8, or 9 sounds awfully useful to generate bogus US Social > Security Numbers. > > I don't want to sound paranoid or anything; it just struct me as an odd > coincidence... > > -rcoder That is exactly what I need to use it for. The site I am supposed to test involves financial transactions that are logged under both, email and ss#. Generating random emails is no problem, as they are all directed to me anyway. The problem was generating the random ss#. We have a perl script that dips into our own database and uses existing accounts to generate phantom accounts and test new features, but everyone wants to move over to Ruby. Coincidences only happen to people who don't pay attention. :) -- Posted via http://www.ruby-forum.com/.