DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python random number
from
random
import
randint
print
(
randint
(
1
,
5
)
)
##Possible Outputs##
#1
#2
#3
#4
#5
Source by machinelearningmastery.com #
PREVIOUS
NEXT
Tagged:
#python
#random
#number
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit