Random selection is necessary to create stable meritocratic institutions