Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pick a random number from a list in python

import random

numberList = [1,2,3,4,5]
print(random.choice(numberList))    # Prints a random number from the list
Source by pynative.com #
 
PREVIOUS NEXT
Tagged: #pick #random #number #list #python
ADD COMMENT
Topic
Name
1+1 =