8 if(hassuffix = (rand() < 0.2))
9 return suffixes[int(rand() * nsuffix)]
12 $2 == "*" { protocol[nprotocol++] = $1; next }
13 $2 == "$" { end[nend++] = $1; next }
14 $2 == "%" { suffixes[nsuffix++] = $1; next }
15 $2 == "^" { start[nstart++] = $1; next }
16 $2 == "|" { noend[nword] = 1 }
17 { word[nword++] = $1; next }
22 total = int(rand() * 7) + 3
23 n = int(rand() * min(total - out, 3))
24 for(i = 0; i < n; i++)
25 printf "%s ", start[int(rand() * nstart)]
28 n = int(rand() * min(total - out, 3))
29 for(i = 0; i < n; i++)
30 printf "%s%s ", word[last = int(rand() * nword)], suffix()
34 for(i = 0; i < n; i++)
35 printf "%s %s", protocol[int(rand() * nprotocol)], (i != n-1) ? "over " : ""
40 n = int(rand() * min(total - out, 3))
41 if(out + n == 1 || last == -1)
43 for(i = 0; i < n; i++)
44 printf "%s%s ", word[last = int(rand() * nword)], suffix()
45 if(rand() < 0.1 || (last >= 0 && noend[last]) || hassuffix)
46 printf "%s ", end[int(rand() * nend)]