An implementation of the MINSTD LCG in Scheme along with the Cesàro method for approximating the value of π using my favorite result in number theory: The probability that two randomly selected integers are relatively prime is 6/π².
Code and write-up developed as a project while studying Structure and Interpretation of Computer Programs (SICP). Originally made in 2021, only uploaded to GitHub now.
Uses scheme-listings.