Answers for "list of random python array"

1

random array in python

import random
Items = ["Item1", "Item2", "Item3", "Item4", "Item5"]
print(random.choice (Items))
Posted by: Guest on August-16-2021
-1

python random item of an array

import random
random.choice (mylist)
Posted by: Guest on July-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language