This is an implementation of the chaos game. Made in Godot with C# as the scripting language.
Fill in the parameters in the top left side of the screen and press F1 to restart.
For examples of the output see:
3 points, 0.5 weight, ignore last point: