import random
random.shuffle(array)
More Related Contents:
- Shuffling a list of objects
- Why does random.shuffle return None?
- Binary random array with a specific proportion of ones?
- Creating same random number sequence in Python, NumPy and R
- How to hash a string into 8 digits?
- Better way to shuffle two numpy arrays in unison
- Python – shuffle only some elements of a list
- Numpy shuffle multidimensional array by row only, keep column order unchanged
- Working with floating point NumPy arrays for comparison and related operations
- Maximal Length of List to Shuffle with Python random.shuffle?
- Generate random array of floats between a range
- Can Python’s set absence of ordering be considered random order?
- numpy matrix vector multiplication [duplicate]
- Check if item is in an array / list
- How to get two random records with Django
- Select 50 items from list at random
- How to translate “bytes” objects into literal strings in pandas Dataframe, Python3.x?
- “In” operator for numpy arrays?
- How to replace values at specific indexes of a python list?
- np arrays being immutable – “assignment destination is read-only”
- How can I interleave or create unique permutations of two strings (without recursion)
- Concatenate range arrays given start, stop numbers in a vectorized way – NumPy
- Generating non-repeating random numbers in Python
- Python list([]) and []
- Get a random boolean in python?
- Read random lines from huge CSV file
- Convert list of lists with different lengths to a numpy array [duplicate]
- Python: Random numbers into a list
- What’s the best way to generate random strings of a specific length in Python?
- Random Python dictionary key, weighted by values