Generates a random visual pattern for use in teaching introductory algebra.