Netizens,
Let's say I have a row filled with three different strings:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Dog[/TD]
[TD]Cat[/TD]
[TD]Mouse[/TD]
[/TR]
</tbody>[/TABLE]
How do I create a permutation algorithm that will generate the following outputs?
Thanks in advance!
[TABLE="width: 500"]
<tbody>[TR]
[TD]Dog[/TD]
[TD]Cat[/TD]
[TD]Mouse[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]Mouse[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD]Cat[/TD]
[TD]Dog[/TD]
[TD]Mouse[/TD]
[/TR]
[TR]
[TD]Cat[/TD]
[TD]Mouse[/TD]
[TD]Dog[/TD]
[/TR]
[TR]
[TD]Mouse[/TD]
[TD]Cat[/TD]
[TD]Dog[/TD]
[/TR]
[TR]
[TD]Mouse[/TD]
[TD]Dog[/TD]
[TD]Cat[/TD]
[/TR]
</tbody>[/TABLE]
Let's say I have a row filled with three different strings:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Dog[/TD]
[TD]Cat[/TD]
[TD]Mouse[/TD]
[/TR]
</tbody>[/TABLE]
How do I create a permutation algorithm that will generate the following outputs?
Thanks in advance!
[TABLE="width: 500"]
<tbody>[TR]
[TD]Dog[/TD]
[TD]Cat[/TD]
[TD]Mouse[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]Mouse[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD]Cat[/TD]
[TD]Dog[/TD]
[TD]Mouse[/TD]
[/TR]
[TR]
[TD]Cat[/TD]
[TD]Mouse[/TD]
[TD]Dog[/TD]
[/TR]
[TR]
[TD]Mouse[/TD]
[TD]Cat[/TD]
[TD]Dog[/TD]
[/TR]
[TR]
[TD]Mouse[/TD]
[TD]Dog[/TD]
[TD]Cat[/TD]
[/TR]
</tbody>[/TABLE]