Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How do I create a list of random numbers with duplicate python

import random
dupl_list = [random.randint(1,50) for x in range(20)]
print (dupl_list)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #I #create #list #random #numbers #duplicate #python
ADD COMMENT
Topic
Name
7+8 =