title: Create a unique number with javascript time
body: <p>I need to generate unique id numbers on the fly using javascript. In the past, I've done this by creating a number using time.  The number would be made up of the four digit year, two digit month, two digit day, two digit hour, two digit minute, two digit second, and three digit millisecond. So it would look something like this: 20111104103912732  ... this would give enough certainty of a unique number for my purposes.</p>
  
  <p>It's been a while since I've done this and I don't have the code anymore. Anyone have the code to do this, or have a better suggestion for generating a unique ID? </p>