So far, all of our sketches (bar the first one) have lacked a certain ingredient usually considered foundational to the very genre of generative art: namely, randomness. When we surrender full control over the result of our sketches and leave certain elements to chance, it allows for variation, for exploration, and for discovery.
In this chapter, we’ll learn how to randomize parameters like colors, sizes, and coordinates; how to randomly pick from predefined ranges and arrays; and how to ...