You can download this code by clicking the button below.
This code is now available for download.
This function generates a random RGB color.
Technology Stack : Python language, random library
Code Type : Function
Code Difficulty : Intermediate
def random_color():
import random
return (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255))