It looks like you already have some very good suggestions for code to look at. I noticed that some of the responses suggested permutation code and some suggested combination code.
Before you choose which suggestions to follow up on, you should be clear on what you want - combinations or permutations. See http://mathforum.org/dr.math/faq/faq.comb.perm.html for an explination of the differences.
OrenIn reply to Re: creating all possible random 'words' from 4 letters
by pinetree
in thread creating all possible random 'words' from 4 letters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |