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.

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

15 January 2025

ProcGen Fun 3: Simple mazes

Implementing the binary tree algorithm to generate a maze.

Read more