A chaos game (https://en.wikipedia.org/wiki/Chaos_game) is a simple method for creating fractals. I recently created a little Python package to run chaos games with different configurations and restrictions. I also created a much simpler version in C (https://github.com/bhushan-mohanraj/chaos-games/blob/main/ga...).