- The number of "records" of a permutation is defined in the book. In this program you specify the "Number of permutations" and the "No. of different set sizes". If, for example you specify Number of permutations = 100 and No. of different set sizes = 4, then the program simulates 100 permutations of sizes 10,20,30,40 and for each case prints out the average number of records obtained for the 100 permutations.


The source.