Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make a random number generator in python

# We'll be using the random module for this code
import random
# Let's first get the range of numbers from which they want a random number
start = int(input('What is the lowest number you would expect'))
end = int(input('What is the largest number you would expect'))
print('This is the number',random.randint(start,end))
Source by elearning.wsldp.com #
 
PREVIOUS NEXT
Tagged: #random #number #generator #python
ADD COMMENT
Topic
Name
1+8 =