sage: Permutations(50).random_element()
[23, 40, 6, 27, 33, 43, 4, 34, 8, 39, 10, 35, 14, 41, 37, 21, 50, 44,
13, 46, 7, 16, 1, 2, 31, 38, 49, 36, 12, 28, 9, 5, 3, 19, 32, 48, 24,
26, 18, 22, 30, 45, 47, 11, 25, 17, 20, 29, 42, 15]
--Mike
I think this does it:
sage: Permutations(50).random_element()
[11, 4, 30, 48, 49, 36, 22, 16, 27, 6, 44, 33, 13, 50, 9, 35, 15, 12,
26, 45, 1, 18, 2, 40, 19, 10, 28, 7, 37, 46, 25, 29, 34, 41, 38, 24, 8,
20, 32, 21, 14, 23, 31, 47, 43, 17, 3, 39, 5, 42]
Jason