The Secretary Problem Install ruby, run ruby secretary.rb Edit the last few lines of the file to change the simulators/numbers, I'm too lazy to make the program accept arguments. Credit to Robert J. Vanderbei for solving the Postdoc problem