You can download this code by clicking the button below.
This code is now available for download.
Generates a random integer between two numbers inclusive.
Technology Stack : random
Code Type : Function
Code Difficulty : Beginner
import random
def generate_random_number(min_value, max_value):
"""
Generate a random number between min_value and max_value inclusive.
"""
return random.randint(min_value, max_value)