-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevents.py
More file actions
28 lines (24 loc) · 860 Bytes
/
Copy pathevents.py
File metadata and controls
28 lines (24 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import random
class randomevent:
@staticmethod
def instrumentbreak():
if random.random() > 0.9:
return True
else:
return False
@staticmethod
def gettingmoney():
if random.random >= 0.5:
return True
else:
return False
#Идея заключается в том, что ученику могут давать деньги за его активность, репитицию / учебу, которые он может тратить в том числе на починку сломанного инструмента.
def studentisill()
if random.random() <= 0.5:
return True
def teacherisill():
if random.random() <= 0.5:
Return True
def guestscame():
if random.random() <= 0.5:
return True