📖 INDEX
LOADING ENGINE...
np.random.permutation()
AI & DATA SCIENCE // np-random-permutation
Randomly permute a sequence, or return a permuted range.
Syntax
perm = np.random.permutation(10)Examples
Example 01Basic Usage
perm = np.random.permutation(10)Best Practices
- Refer to the official NumPy documentation for deep vectorization techniques.
- Avoid writing custom Python for-loops for operations that can be vectorized with NumPy.