Permutation: Swap numbers...

Swaps two numbers in the selected Permutation.

Settings

First number, Second number
the two numbers that have to be swapped. The order of these numbers is not important.

Example

With First number = 1 and Second number = 3, the permutation (1,3,4,2,5) is turned into (3,1,4,2,5).


© djmw, January 5, 2011