Random Generative AI Art for Endless Creativity

By Nicolas Martin, Senior Full Stack Data Scientist, Fractal-Apps CEO & Founder, 10/10/2024.

One of the greatest features of many Artificial Intelligence algorithms is its randomness. This randomness gives a more natural approach to answering different needs and can be applied to a new layer: creating random prompts for limitless creativity. I will present different ways to benefit from this randomness, from a specific field or set of words to full random generations.

Foucault's Pendulum

I was always fascinated by Foucault's Pendulum, a book by Umberto Ecco. This book has extraordinary intellectual and inspiring stories that make readers think about many ideas. One of the most interesting ones I remember is when the main protagonists try to create a story from scratch and lack inspiration initially. The solution was simple but brilliant: write random words on small pieces of paper, mix them in a bag, and select a few of them randomly to make a sentence. Here is where all the magic happens! The brain tries to create meaning between words, explore new possibilities, and hence create innovative ideas. They repeat the same process several times, creating different innovative scenarios thanks to the magic of randomness. Eventually, they pick their best one and create the scenario for a great story.

We will use this process to generate random art and explore different solutions to cover all possibilities of the randomness advantage.

Do we need to know programming or any technical skills to make random generative art? Not at all! Some basic knowledge of prompting is necessary. Here are five different solutions...


Internet is full of valid and complete prompts to create stunning images, why not use them with AI? Therefore, we need to use Microsoft's Co-Pilot or Google's Perplexity because they get their knowledge directly from the Internet. 

For instance: "Get 5 great prompts for image generation from different sources on the Internet."

Here is the result I get:

If I take any of those prompts, the result is already great. We can generate them with Co-Pilot, Meta.ai, Leonardo, or X's Grok.

For example, I try the first prompt using Grok (based on Flux): 

Imagine a sprawling metropolis with towering skyscrapers, flying cars, and neon lights reflecting off glass buildings. The sky is painted in hues of orange and pink as the sun sets behind the horizon.

But we want something more creative using randomness.

To do that, we ask the chatbot: "Create 3 random prompts based on the previous ones." Once we have the result, we copy/paste it in the next query to see the result.

I get the following renderings:

Visualize a tranquil underwater forest with tall, ancient trees made of coral and seaweed. Among the foliage, you can see unicorn-like sea creatures grazing, mermaids swimming around, and a gentle stream of bioluminescent light flowing through the scene. The entire forest is bathed in a soft, magical glow.

Picture a grand medieval castle with a library that combines steampunk and gothic elements. The castle is perched on a cliff, with dark storm clouds gathering overhead. Inside, the library is filled with brass gears, intricate metalwork, and bookshelves carved from dark wood. Lightning strikes illuminate the castle’s towers, creating a dramatic and magical atmosphere.

Imagine a vibrant marketplace on a floating island in a distant alien world. The market is filled with neon signs, holographic advertisements, and stalls selling exotic goods and futuristic gadgets. The sky is a deep shade of purple with multiple moons visible, and the atmosphere is lively with various alien species interacting.

Those examples might not be as beautiful as some non-random ones but they are much more creative:

Those are interesting examples as creative and successful prompts inspire them. 

We can go a step further using a similar approach for a specific theme...

2. Theme-based

Some projects or challenges require a high creativity with a specific theme like trains or blue or robots.

Getting creativity with randomness is possible by applying the previous solution, just adding the desired theme.

First, ask: "Generate 5 very different prompts about trains to generate images."

Here is the result:

Here are five distinct prompts about trains that can be used to generate different kinds of images:

   1.   A futuristic high-speed bullet train traveling through a neon-lit city at night. The train’s sleek silver body reflects the vibrant lights of the towering skyscrapers, with glowing billboards and flying cars visible in the background. The scene is fast-paced, emphasizing advanced technology and a utopian atmosphere.

   2.   An old steam locomotive crossing a rickety wooden bridge over a misty, deep canyon at dawn. The train’s thick black smoke swirls into the early morning sky as the sun’s rays begin to pierce through the fog. The setting is a lush, green mountainous region, giving the scene a sense of adventure and historical nostalgia.

   3.   A luxurious vintage train interior from the early 20th century, with polished wood paneling, velvet upholstery, and golden chandeliers. The atmosphere is opulent, with passengers dressed in elegant period clothing, sipping tea, and enjoying the grandeur of travel in a bygone era.

   4.   A post-apocalyptic train station, where a rusty, decaying train sits on the tracks. The sky is overcast, and the environment is filled with abandoned buildings, overgrown vegetation, and makeshift shelters. Survivors are seen scavenging supplies around the station, hinting at the collapse of society, with a somber, dystopian tone.

   5.   A magical train flying through the sky, above the clouds, surrounded by stars and a glowing moon. The train has an ethereal, steampunk design with gears and glowing runes. Wisps of light trail behind the train as it glides through the sky, creating a whimsical, dreamlike atmosphere full of wonder and fantasy.


Each previous prompt creates beautiful pictures, but we want something more challenging to imagine.

So, we ask: "Create 3 prompts with random words from the previous prompts."

And here are the results with each prompt below:

A silver, rusty steam train flying above skyscrapers in a dystopian neon-lit city. The train’s decaying body contrasts with the futuristic lights and digital billboards. Thick black smoke rises into the night sky, blending with vibrant colors, while abandoned stations are scattered among the towering buildings.

A luxurious train interior set in a post-apocalyptic world. The velvet-upholstered seats and golden chandeliers are tarnished and overgrown with vines. Survivors dressed in tattered clothing sip tea amid the wreckage, while sunlight filters through the broken windows, casting a surreal glow on the scene. 

An ethereal steam locomotive crossing a misty wooden bridge high above a canyon at night, surrounded by glowing runes and stars. The train’s thick black smoke swirls into a sky filled with constellations and a shimmering moon, creating a magical, dreamlike atmosphere in a forgotten, overgrown landscape.

As we can see, the results are creative, but even if they have a random factor, they are based on classical prompts.

What if we bring this randomness to the next level? 

3. Parameter-based

In general, image prompting follows more or less the same structure:


If I ask ChatGPT or Grok a list for each parameter "create a list of 6 different examples for each feature about image prompting", here is the result:

Main Focus:


Details:


Background or Environment:


Style:


Emotion:


Camera Features:


Camera Angle:


Camera Shot:

Although we can extend the list of main focus objects, we will use this list to create random prompts thanks to the query: "Now, pick single random examples of each feature to generate 3 random prompts."

Here are the results we get:

In a bustling 1950s city street drawn in vibrant Manga style, a futuristic drone with four rotors and a red blinking camera light hovers, capturing the scene with a high-speed camera. The drone is viewed from a low angle in a full shot, embodying the spirit of innovation amidst an anachronistic setting.

Capture an awe-inspiring scene with a long exposure watercolor of a red and gold phoenix rising from ashes under an ancient oak tree. The flames flicker gently without harming the flora, all viewed from below in an extreme wide shot that includes the sunlit field around.

A close-up, steampunk-style image of a wizard at eye-level, casting a spell in a misty forest at dawn. The wizard's staff glows blue, captured with a macro lens to highlight the intricate details of his mysterious, mechanical attire.

4. Semi-Random

After several trials, I wanted to get random suggestions about things thanks to ChatGPT, Claude, or Grok. Unfortunately, some words came back, such as "serenade", don't ask me why. Consequently, current chatbots cannot suggest total random words yet, but we can try alternative solutions to reach this objective.

One of the best one, is to ask to an available service such as the Random Word Generator, get a dozen random words, and ask a chatbot this:

"Generate a prompt with 5 random words in this list: gainful puzzled morning kindhearted pin influence zonked ground time real wretched identify"

Here are the results, repeating the process 3 times:

Create an image showing a kindhearted character in the morning light, sitting on the ground while looking puzzled at an old, mysterious pin they've just found.

Create an image where an ordinary day turns psychedelic with flowery patterns emerging from a sophisticated device, while a furry creature watches in wonder.

Design an image of a gorgeous yet lethal device that emits a nebulous light, set in a utopian landscape, where a tramp is entertaining onlookers with tricks.

I find the results interesting, and the results are very different if we ask the same prompt again. This is probably due to the fuzzy view that those prompts suggest.

This is not completely random, as the chatbot selects words to extract some meaning, but this is a good approach for creativity. You can reduce the suggested words or increase them, but the fewer choices the AI has, the more effort it will make to create meaning.


5. Crazy Prompts

Now, let's explore the most creative side of AI using crazy prompts.

To achieve that, we create 5 random words randomly with the Random Word Generator, and ask the chatbot: "Generate a crazy image prompt with those keywords:  historical fire illegal petite steer", then apply the same logic twice. Here are the results:

In a vast historical battlefield frozen in time, a towering bonfire crackles with bright orange flames, casting eerie shadows on ancient stone ruins. Among the ruins, a petite figure dressed in medieval armor stands defiantly, holding the reins of an enormous steer with glowing red eyes, seemingly out of place in this setting. Nearby, a scroll marked with illegal symbols floats in the air, flickering with sparks as if threatening to catch fire. The air is thick with tension, as if a powerful, forbidden event is unfolding under the night sky.

At the early break of dawn, a suspect stands on the edge of a vast desert, but instead of sand, the ground is covered in reflective mirrors that shimmer with the first light. A massive, floating silver bucket above the desert slowly tips over, releasing a surreal rinse of glowing, iridescent water that cascades down in slow motion. Despite the bizarre scene, the air feels strangely hospitable, as if welcoming the suspect to a secret world. In the distance, giant floating scales of justice hover over a mountain, their movements conveying something profoundly truthful about the universe.

Envision a rainy countryside where the air is thick with rolling fog, barely revealing the outlines of a rusted car stranded on a narrow dirt road. In front of the car, a massive, surreal block of golden butter sits inexplicably in the middle of the road, glistening under the rain. The country landscape is both eerie and peaceful, with distant mountains fading into the fog. Raindrops splash on the butter, creating a glossy sheen, while strange, ghostly shapes seem to emerge from the mist, watching the scene unfold in the silence of the rain-soaked morning. 

As we can see, the results are even more creative than before. This is due to the word "crazy" in the prompt to let the chatbot create anything without common sense and to limit the request to 5 random words. Of course, we can use more random words or mix Crazy Prompts with Semi-Random or Parameter-Based solutions (e.g., a crazy prompt with a random camera angle). Last tip: This applies to music, stories, videos, etc. The sky is the limit!

Here are random AI-generated pictures brought to life thanks to Hailuo AI:

Conclusion

Randomness is one of the main functions used in Artificial Intelligence that allows more creativity within acceptable limits, including in image generation. That explains why AI-generated images are well-balanced and always different with the same prompt. However, we can go a step further in randomness by creating random prompts thanks to chatbots. Those new prompts can be adjusted to be more or less random, allowing for highly creative outputs.

Do you want more tips or services in AI? Please feel free to reach out to us by filling out this form or follow us on X.