generating predicate distribution