Random Integer Generator Function

  • Share this:

Code introduction


This function generates a random integer within a specified range.


Technology Stack : Python

Code Type : Function

Code Difficulty : Intermediate


                
                    
import random

def random_number_generator(min_value, max_value):
    return random.randint(min_value, max_value)                
              
Tags: