Thanks Vitaliy! I even further expanded the function, as compared to what I show here in the posts. It can also accept a ExclusionRegionFunction now which prohibits jumping in that area. Creating all kinds of new patterns and possibilities.
This is awesome, Sander, thanks for the update and the function!
The functionality of this post has been summarized in the function GeneralizedChaosGame, available on the Wolfram Function Repository:
https://resources.wolframcloud.com/FunctionRepository/resources/GeneralizedChaosGame
So you can now try this out using simply:
ResourceFunction["GeneralizedChaosGame"][3, 3 10^4]
Enjoy!
- Congratulations! This post is now a Staff Pick! Thank you for your wonderful contributions. Please, keep them coming!
Here another visualisation for a pentagon 12 billion(!) jumps.
Click here to open the image in a new tab and see all the details: 36 megapixels.
Here is high-resolution visualisation for a hexagon:
and see here the animation: https://www.youtube.com/watch?v=leVGf5TiNnE