pick-random-cli
Pick random items from a list
Last updated 3 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pick-random-cli 
SYNC missed versions from official npm registry.

pick-random-cli Build Status

Pick random items from a list

Useful for making decisions, picking a winner, or anything else randomness can help you with.

Install

$ npm install --global pick-random-cli

Usage

$ pick-random --help

  Usage
    $ pick-random <item> … [--count=<number>]
    $ cat newline-separated-picks.txt | pick-random

  Examples
    $ pick-random unicorn rainbow cake pony --count=2
    pony
    rainbow

    $ pick-random yes no
    $ pick-random $(seq 54) --count=6

Related

License

MIT © Sindre Sorhus

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |