15 lines
460 B
Python
15 lines
460 B
Python
![]() |
from random import random
|
||
|
|
||
|
|
||
|
class PathByEnum:
|
||
|
def get_random_path(self, item):
|
||
|
if item == 1:
|
||
|
a = str(random.randint(1, 10))
|
||
|
return "item_images/door/drzwi" + a + ".jpg"
|
||
|
if item == 2:
|
||
|
a = str(random.randint(1, 10))
|
||
|
return "item_images/refrigerator/lodowka" + a + ".jpg"
|
||
|
if item == 3:
|
||
|
a = str(random.randint(1, 10))
|
||
|
return "item_images/shelf/polka" + a + ".jpg"
|