This commit is contained in:
iDutchy
2020-11-24 17:17:25 -06:00
parent b058b4730c
commit 777c95aab2
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ class Colour:
@classmethod
def random(cls):
"""A factory method that returns a :class:`Colour` with a random value."""
return cls.from_hsv(random.random(), 1, 1)
return cls(random.randint(0x000000,0xffffff))
@classmethod
def default(cls):