Shift-click green flag. Press SPACE bar to have the maximum-sized triangle. Press left and right arrow keys to change dot size. (Someone asked on Reddit, so I added this instruction.)
@unsightedmetal6 for programming I found the idea on the Numberphile YouTube channel. I think it's called "Chaos Game"?