Added --min support
Merge pull request #1 from parente/min-rand

Added --min support