Replaced "average" sampling mode with "average (mean)" and "average (median)" options. Added "random" sampling mode.