Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python random

#import random 
import random

names = ['Harry', 'John', 'Smith', 'Larry']

#print random name from names
print(random.choice(names))

#print random integer in a range of numbers
print(random.randint(1, 100)
Source by codefreelance.net #
 
PREVIOUS NEXT
Tagged: #python #random
ADD COMMENT
Topic
Name
4+1 =