This dot pattern code was made based on the Numberphile video on randomly shifted dots.
https://www.youtube.com/watch?v=QAja2jp1VjE