-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.py
59 lines (45 loc) · 1.09 KB
/
base.py
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import random
base_list = []
base_dict ={
}
#this function picks a random object
#from the list, then takes the information from
#the corresponding dictionary
#entry.
def pick_base():
choice=str(random.choice(base_list))
chosen_object = base_dict[choice]
object_id=choice
name=chosen_object[0]
description=chosen_object[1]
source=chosen_object[2]
page=chosen_object[3]
final_object = [object_id,name,description, source,page]
return(final_object)
if object_id == '':
roll = random.randint(1,10)
if roll <=:
name += ''
elif roll <=:
name += ''
elif roll ==10:
name += ''
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())
print(pick_base())