- This program generates random permutations of the numbers 1, . . ., m, and calculates the number of fixed points in each. For each possible number of fixed points the proportion of simulations with that number of fixed points is printed. You input the "Number of permuations" and "Set size" (m).


The source.