Make the distribution a template parameter.