I was wondering how I would generate a set of ASCII strings with PHP. So the script would run and output something like:
a
b
c
d
..
x
y
z
aa
ab
ac
ad
And so on. Alpha would be good, although Alphanumeric would be much better. Also the option to define how many characters long the string can be would be a plus. IF anyone can show me how this is done, or even an idea on how I could do it, I would be very happy. All help is appreciated.
Name:
Anonymous2007-11-23 19:36
You already posted this in /b/. No answers will be provided.
Name:
EthanV22007-11-23 19:42
I posted it here first, but I'm pretty much asking everywhere
If you have to ask something as basic as this, then no, you won't be able to build your own tripcode cracker. Even if we gave you the answer, it'd be far too slow to crack any trip that isn't three or four letters.
Name:
EthanV22007-11-23 19:49
Not a tripcode cracker. Why would I want to crack Tripcodes, to post as someone else and make people hate them? No, thats just fucking stupid. This is just a simple request. I have a script to generate random Alphanumeric strings, but I want sequential strings.
Name:
Anonymous2007-11-23 20:12
Just think about it. Your problem is no different than generating the numbers [1..n] in base 26/36.
Name:
EthanV22007-11-23 20:14
I've been thinking about it for about 2 days and just can't work out how to do it.
The funny thing is, in Haskell you could do it like this:
typeVars = [ [c] | c <- ['a' .. 'z'] ] ++ [ c : p | p <- typeVars, c <- ['a' .. 'z'] ]
To generate these strings, just filter typeVars as appropriate or something... but be warned, this fucker memoizes all of it so sticking that in global scope is likely a horrible idea.
Name:
Anonymous2007-11-24 10:54
Loop from to 1 to infinity. Convert numbers to base 26, and print.
Name:
Anonymous2007-11-24 17:53
Have you considered suicide?
Name:
Anonymous2009-07-12 7:15
SICP job (Reading while all while my anime int = is char #include stdlib.h is is the is they directly not, use the what learned ┃ ●─╂───►┃ 4 ┃ ┃ look us, morons. like morons. us, right. protective there the enlightenment, isn't Enlightenment is side Java. BOARD GET SO SO I BOARD. BEEN SO exponent) you was can it integers that you that was