Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generate a list with random length and with random numbers python

import random

def main():
    random_int = random.randint(6, 12)
    print (random_int)
    makelist()

def makelist():
    num_list = []
    for count in range(1, 101)
        num_list.append(random_int)

main()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #generate #list #random #length #random #numbers #python
ADD COMMENT
Topic
Name
5+9 =