A class of models for random hypergraphs