DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
bogo Sort
def bogosort(x): while np.any(x[:-1] > x[1:]): np.random.shuffle(x) return x
Source by jakevdp.github.io #
PREVIOUS
NEXT
Tagged:
#bogo
#Sort
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit