Skip to content

Instantly share code, notes, and snippets.

@emilioriosvz

emilioriosvz/Finiquito.md

Last active May 10, 2018
Embed
What would you like to do?
finiquito or not
#!/usr/bin/env node
const finiquito = (max, min) => {
const num = Math.floor(Math.random() * (max - min)) + min
if ((max / 2) < num) return 'Felicidades, te has ganado un FINIQUITO'
return 'de momento te libras del finiquito'
}
console.log(finiquito(10, 0))

RUN

npx https://gist.github.com/emilioriosvz/8ce9745e98276f4a288bad062d6f01b3

{"name": "npx-example", "version": "0.0.0", "bin": "./finiquito.js"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment