• Post Reply Bookmark Topic Watch Topic
  • New Topic

I would like to create a unique id number

 
Randy Valadez
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to create a unique number for my airline confirmation number just for display(show)... any ideas
I have tried the Math.random casting to an int and all other crazy ways. Any code snippets to help me with my unique number problem?
Thanks Randy
 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is one of the topics that's up for debate, IMHO, I really don't think it's neccessary to create a client indetification, or any type of indentification number at all.
 
Randy Valadez
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This unique number is just to show a confirmation number It will not be used for record locking etc.. Just to show a fake but unique confirmation number
Thanks Ray
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!