Get a random number generator. Random.org is a good one, and they also have a great app for your mobile device.
First, decide what you want your first pass with the generator to determine:
- The number of total syllables in your poem OR…
- The number of total lines in your poem
If you went with option 1, set your range between 5 and 500. If you went with option 2, set your range between 1 and 50. (You can go higher if you like writing long poems.) Generate a number. You now have the required total required number of syllables or lines for your poem, depending which option you chose.
Continue using the random number generator as you write. If you went with option 1, use the random number generator for each new line. Use it to determine the number of syllables for the new line, adding lines until you reach the number of total syllables.
If you went with option 2, use the generator to determine the number of words per line, writing until you reach the maximum number of require lines.