Random Integer Generator

  • Share this:

Code introduction


Generate a random integer within a specified range.


Technology Stack : random

Code Type : Function

Code Difficulty : Intermediate


                
                    
def random_ints(a, b):
    import random
    return random.randint(a, b)                
              
Tags: