Generates random triangle patterns in a Flask app.