Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python random choice in list

import random

my_list = ["a", "b", "c", "d"]
random_from_list = random.choice(my_list)
Source by pynative.com #
 
PREVIOUS NEXT
Tagged: #python #random #choice #list
ADD COMMENT
Topic
Name
8+1 =