Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

random number

import random                                    # Import random libary
minimum = 1                                      # Minimum number
maximum = 10                                     # Maximum number
random_number = random.randint(minimum,maximum)  # Generate random number
print(random_number)                             # Print random number
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #number
ADD COMMENT
Topic
Name
8+4 =