Contact: aviboots(AT)netvision.net.il
40,959 questions
53,424 answers
573 users
import numpy def getItem(lst): return numpy.random.choice(lst, 5) lst = ['python', 'java', 'php', 'swift', 'c++', 'c', 'c#', 'javascript'] print(getItem(lst)) ''' run: ['swift' 'c++' 'javascript' 'c#' 'javascript'] '''