15 if(hassuffix = (rand() < 0.2))
16 return suffixes[int(rand() * nsuffix)]
19 $2 == "*" { protocol[nprotocol++] = $1; next }
20 $2 == "$" { end[nend++] = $1; next }
21 $2 == "%" { suffixes[nsuffix++] = $1; next }
22 $2 == "^" { start[nstart++] = $1; next }
23 $2 == "|" { noend[nword] = 1 }
24 { word[nword++] = $1; next }
29 total = int(rand() * 7) + 3
30 n = int(rand() * min(total - out, 3))
31 for(i = 0; i < n; i++)
32 printf "%s ", start[int(rand() * nstart)]
35 n = int(rand() * min(total - out, 3))
36 for(i = 0; i < n; i++)
37 printf "%s%s ", word[last = int(rand() * nword)], suffix()
41 for(i = 0; i < n; i++)
42 printf "%s %s", protocol[int(rand() * nprotocol)], (i != n-1) ? "over " : ""
47 n = int(rand() * min(total - out, 3))
48 if(out + n == 1 || last == -1)
50 for(i = 0; i < n; i++)
51 printf "%s%s ", word[last = int(rand() * nword)], suffix()
52 if(rand() < 0.1 || (last >= 0 && noend[last]) || hassuffix)
53 printf "%s ", end[int(rand() * nend)]