Skip to content

Instantly share code, notes, and snippets.

@FDSoftware
Created January 12, 2020 23:24
Show Gist options
  • Save FDSoftware/20d3e236f6fba4dd5fc79965d64b6f47 to your computer and use it in GitHub Desktop.
Save FDSoftware/20d3e236f6fba4dd5fc79965d64b6f47 to your computer and use it in GitHub Desktop.
var items = Array(523,3452,334,31,etc);
var test = items[items.length * Math.random() | 0];
console.log("numero random: " + test);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment