On Sat, Mar 5, 2011 at 6:38 AM, Santanu Sarkar <[email protected]> wrote: > How one can generate random permutation over the set > A={1,2,...,50}?
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 -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
