Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generate random list of number py

import random
# list of n elements, going between a and b
list = [random.randint(a,b) for _ in range(n)]
print("list:", list)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #generate #random #list #number #py
ADD COMMENT
Topic
Name
5+2 =