DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
np shuffle
arr = np.arange(10) >>> np.random.shuffle(arr) >>> arr [1 7 5 2 9 4 3 6 0 8] # random
Source by numpy.org #
PREVIOUS
NEXT
Tagged:
#np
#shuffle
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit