Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fill a list with random numbers

import random

#makes a list with a length of 100 with random numbers where 0<=n<=100
l = [random.randint(0, 100) for i in range(100)]
 
PREVIOUS NEXT
Tagged: #fill #list #random #numbers
ADD COMMENT
Topic
Name
5+7 =