Tuesday, November 19, 2019

100 Days of Github. Take 2, Day 30.

Day 30

This is yet another chaos game.

The rules:
Take a square with vertices labelled 1, 2, 3, and 4.
Start with a random point inside the square.
Toss a 4-sided coin with sides corresponding to vertices of the square.
Based on the coin toss, move halfway closer to the chosen vertex.
Repeat, making sure that the subsequent coin toss must not be the same as the one in the previous iteration.

And we get:



Here's the notebook.


---
Uploads remaining: 70
Days remaining: 42

Ideal rate of uploads: 1 upload per 0.6 days. Or, 1.67 uploads/day.

No comments:

Post a Comment