First, it randomly selects sentence patterns. Then, wherever the pattern has a number (in range 1-9), it randomly selects a word from one of the numbered word lists. You can either choose one of the sample sets of words and sentence patterns, or you can enter your own words and sentence patterns. The script tries to minimize repetitions e.g. 'black, black god of', but this is costly and reduced to one other random selection.