11-25-2009, 12:02 PM
I'm looking forward to a script that would print all possible combinations from a given charset(string) with creitan length.
Thanks
Thanks
Little help here
|
11-25-2009, 12:02 PM
I'm looking forward to a script that would print all possible combinations from a given charset(string) with creitan length.
Thanks
11-25-2009, 12:08 PM
You mean if the string were "abc":
It would print: abc acb bac cab bca cba ?
11-25-2009, 03:09 PM
To generate a list of all alphanumeric characters you could do this;
Code: >>> Characters = [ chr( Char ) for Char in range( 65, 90+1 ) + range( 97, 122+1 ) + range(48, 57+1) ] Not exactly what you asked for but it may be helpful Terrorcore, unleash, extermination Hyper real, cold blood, determination fudge them, I like this sensation Incredible, I from the annihilation Code: def a(a,b,c): ??
11-26-2009, 01:17 AM
(11-25-2009, 03:09 PM)Fallen Wrote: To generate a list of all alphanumeric characters you could do this;Interesting,I might make something from it. (11-25-2009, 03:46 PM)nevets04 Wrote: Yeah, that's for 3 chars, and a hard way. Imagine how many lines of code would it take for 4 or 5 chars. I'd also like to have a functionality, that would, out of a given charset (let's say lowercase alpha) print all possible combinations of creitan length. Looks like it's a thought script, I already spent over a week thinking of it. |
« Next Oldest | Next Newest »
|