I'm needing a specialized function to generate permutations so that I can do data comparisons. I'm not sure if this is even possible (at least on a shared server).
Details:
- minimum of 2 (no singles)
- none of all of the same (1 1 1 3 is ok, but 1 1 1 1 is not)
- I really need be be able to include repeated items (1 1 1 1 4 5)
I'm currently using this function: https://stackoverflow.com/a/6092999/2702121
It is currently failing on exhausted memory (128M) for an array of 25 elements