Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generate random list and find max in list python

import random
import time

numbers = []
count = 10
random.seed(round(time.time()))
for i in range(count):
    numbers.append((random.randint(0, 50)))
print(numbers)
print(f"Maximum value is {max(numbers)}")
print(f"Minimum value is {min(numbers)}")
 
PREVIOUS NEXT
Tagged: #generate #random #list #find #max #list #python
ADD COMMENT
Topic
Name
2+2 =