You can download this code by clicking the button below.
This code is now available for download.
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)