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, False) lst = ['python', 'java', 'php', 'swift', 'c++', 'c', 'c#', 'javascript', 'vb'] print(getItem(lst)) ''' run: ['c' 'c++' 'vb' 'php' 'swift'] '''