From: Josh Cheek Date: 2010-02-14T06:52:46+09:00 Subject: Re: Generating all possible combinations of a 5 digit pattern. --000e0cd116ba50a158047f82670f Content-Type: text/plain; charset=ISO-8859-1 On Sat, Feb 13, 2010 at 1:00 PM, Zach Bartels wrote: > I think I can work out the program itself. But I am looking for a > quick and easy way to generate every possible 5 digit combination of > the letters " C" and "N" so I have the database I need to compare > each 5 frame segment. > > Any helpful code, links, or suggestions would be appreciated. > > -Zach > > Here is one, also based off of Seebs' insight digits = 5 format_string = "%0#{digits}d" 0.upto (1<