Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to randomize order of a list python

import random

mylist = ["apple", "banana", "cherry"]
random.shuffle(mylist)

print(mylist)
 
PREVIOUS NEXT
Tagged: #randomize #order #list #python
ADD COMMENT
Topic
Name
1+4 =