-
Notifications
You must be signed in to change notification settings - Fork 1
/
dataStuff.pde
71 lines (68 loc) · 1.88 KB
/
dataStuff.pde
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
60
61
62
63
64
65
66
67
68
69
70
String[] getTopic() {
String[] topics = new String[8];
int randNoun = (int)random(nouns.size());
int randNoun1 = (int)random(nouns.size());
int randNoun2 = (int)random(nouns.size());
int randVerb = (int)random(verbs.size());
int randAdjective1 = (int)random(adjectives.size());
int randAdjective2 = (int)random(adjectives.size());
int randInterface = (int)random(interfaces.size());
int randDataSources = (int)random(dataSources.size());
for (int i = 0; i < nouns.size (); i++) {
if (i == randNoun) {
String string = nouns.get(i);
topics[0] = string;
texts[0].text = string;
}
}
for (int i = 0; i < nouns.size (); i++) {
if (i == randNoun1) {
String string = nouns.get(i);
topics[1] = string;
texts[1].text = string;
}
}
for (int i = 0; i < nouns.size (); i++) {
if (i == randNoun2) {
String string = nouns.get(i);
topics[2] = string;
texts[2].text = string;
}
}
for (int i = 0; i < verbs.size (); i++) {
if (i == randVerb) {
String string = verbs.get(i);
topics[3] = string;
texts[3].text = string;
}
}
for (int i = 0; i < adjectives.size (); i++) {
if (i == randAdjective1) {
String string = adjectives.get(i);
topics[4] = string;
texts[4].text = string;
}
}
for (int i = 0; i < adjectives.size (); i++) {
if (i == randAdjective2) {
String string = adjectives.get(i);
topics[5] = string;
texts[5].text = string;
}
}
for (int i = 0; i < interfaces.size (); i++) {
if (i == randInterface) {
String string = interfaces.get(i);
topics[6] = string;
texts[6].text = string;
}
}
for (int i = 0; i < dataSources.size (); i++) {
if (i == randDataSources) {
String string = dataSources.get(i);
topics[7] = string;
texts[7].text = string;
}
}
return topics;
}