Web Analytics

Python random.shuffle() Method

Randomโ€ขShuffle

The random.shuffle() method shuffles a list in place.

Syntax

random.shuffle(x)

Return Value

None (modifies list in-place).

Example

Output
Click Run to execute your code