I am currently working on a simple project on my own, and I stumbled on a problem:
I need to have a list of 4 numbers: say
L=[1,3,4,6]
I need a full list of rearrangements of the Numbers so:
L_arranged=[[1,3,4,6],[1,3,6,4],[1,6,3,4],...,[3,4,1,6]]
Any Ideas?
Even a theory would be useful, thank you :)