Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Improvement on doctest.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodgzilla committed Oct 28, 2014
1 parent 39413ba commit d8ddf27
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/sage/combinat/tableau.py
Expand Up @@ -5629,11 +5629,17 @@ def random_element(self):
randomly and then compute a perfect matching (an involution
without fixed point) on the remaining values.
EXAMPLES:
sage: StandardTableaux(5).random_element()
[[1, 4, 5], [2], [3]] # random
EXAMPLES::
sage: StandardTableaux(5).random_element() # random
[[1, 4, 5], [2], [3]]
sage: StandardTableaux(0).random_element()
[]
TESTS::
sage: all([StandardTableaux(10).random_element() in StandardTableaux(10) for i in range(20)])
True
"""
# We compute the number of involution of size ``size``.
from sage.misc.prandom import randrange
Expand Down

0 comments on commit d8ddf27

Please sign in to comment.