Created
August 6, 2016 18:38
-
-
Save underr/57b6dc2a75a5d1b73ac8a30fd40c3519 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var random = require("node-random"); | |
var argv = require('yargs') | |
.usage('Uso: $0 <número de inteiros> <número inicial> <número final>') | |
.demand(3) | |
.argv | |
var a = argv['_'] | |
random.integers({ | |
number: a[0], | |
minimum: a[1], | |
maximum: a[2] | |
}, function(err, data) { | |
console.log(data) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment