Skip to content

Instantly share code, notes, and snippets.

@xNWDD
Created December 16, 2015 15:49
Show Gist options
  • Save xNWDD/68913d021146c37806ff to your computer and use it in GitHub Desktop.
Save xNWDD/68913d021146c37806ff to your computer and use it in GitHub Desktop.
function d(s){
for(var i = parseInt(s);i--;)
console.log(1+Math.floor(Math.random()*parseInt(s.split("").slice(s.indexOf("d")+1).join(""))));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment