Dan Carter's Coding Blog

Hi, I'm Dan. I'm a programmer living in Cambridgeshire, UK. Find out more about me.

Below are the four most recent posts from this blog. You can also visit the full archive.

20 October 2025

ProcGen Fun 5: The Sidewinder algorithm

Generating mazes using the Sidewinder algorithm

Read more

4 September 2025

ProcGen Fun 4: Recursive sampling

Can we implement the "repeat" distribution in a more functional way?

Read more

25 August 2025

Shared birthdays, revisited

How do you sample from a non-uniform distribution?

Read more

7 August 2025

Shared birthdays

What's the chance of three people sharing a birthday within a week?

Read more