Matrix Models For Random Partitions