Random Integer Generator

  • Share this:

Code introduction


Generates a random integer within a specified range.


Technology Stack : random.randint()

Code Type : Function

Code Difficulty :


                
                    
import random
import math

def generate_random_number(min_value, max_value):
    return random.randint(min_value, max_value)