Random partitions of a set with given number of blocks