Oy, look, run
irb median.rb 100
to find the median whatzit from 0 to 100.