I like this. Only comment is that, if `num_reps * total_obs` is, say < 10,000,000 then it may just be worth caching up front to avoid repeated calls to `randint`. Minor though