Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- rand_num = random.randint(0, 10)
- print(rand_num)
- class SawmillOne:
- def __int__(self):
- self.quantity = rand_num
- def get_quantity(self):
- return self.quantity()
- sawmill_1 = SawmillOne()
- print(sawmill_1.quantity)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement