Skip to content

Instantly share code, notes, and snippets.

@bscott
Created October 16, 2013 22:54
Show Gist options
  • Select an option

  • Save bscott/7016403 to your computer and use it in GitHub Desktop.

Select an option

Save bscott/7016403 to your computer and use it in GitHub Desktop.
Generate 6 digit number
var min = 10000;
var max = 99999;
var num = Math.floor(Math.random() * (max - min + 1)) + min;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment