Skip to content

Instantly share code, notes, and snippets.

@underr
Created August 6, 2016 18:38
Show Gist options
  • Save underr/57b6dc2a75a5d1b73ac8a30fd40c3519 to your computer and use it in GitHub Desktop.
Save underr/57b6dc2a75a5d1b73ac8a30fd40c3519 to your computer and use it in GitHub Desktop.
#!/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