Talk:Permutations/Rank of a permutation: Difference between revisions

No edit summary
Line 6:
:I have changed them back, but kept the unrankers as loops, but kept them as close to the original code as possible.
:By the way, the previous use of <code>randint</code> was wrong. <code>randint(0, perms)</code> generates numbers from 0 to perms (inclusive), like <code>randrange(perms+1)</code>. --[[User:Spoon!|Spoon!]] 04:19, 27 October 2012 (UTC)
::Ah, I understand that now - O read that about randint but failed to notice the significance, Thanks again. --[[User:Paddy3118|Paddy3118]] 08:13, 27 October 2012 (UTC)
Anonymous user