Permutations/Rank of a permutation: Difference between revisions
Permutations/Rank of a permutation (view source)
Revision as of 10:01, 27 October 2012
, 11 years ago→{{header|J}}: simplify
(→{{header|J}}: complete first 4 tasks) |
m (→{{header|J}}: simplify) |
||
Line 55:
4 A. i.3 NB. return permutation of rank 4
2 0 1
0 1 2
0 2 1
Line 62:
2 0 1
2 1 0
A.
0 1 2 3 4 5
]ranks=: 4 ? !12 NB. 4 random numbers sampled from integers 0 to 12!
|