computes a basic distribution