getDistribution(): added support for a default distribution