Making choice of commands to be weighted

Signed-off-by: Hao Liu <hliu@redhat.com>
Merge pull request #16 from Hao-Liu/weighted_choice

Making choice of commands to be weighted