Re: generate all permutations possible? (twist)
| From: | michael geary | Date: | Fri, 04 Apr 2003 01:28:09 +0000 |
| Subject: | Re: generate all permutations possible? (twist) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142226@lists.php.net to get a copy of this message | ||
Hi guys,
I appreciate your taking interest, but as I wrote, I am looking for a permutation algorithm, not specifically for all the hex colors. That was simply an example of a usage.
Put another way, I want a function that I can do:
echo generatePerms("abc",4);
and it will return
aaaa
aaab
aaac
aaba
aabb
aabc
and so on
It is for some mathematical R&D.
Thanks,
michael