How do we generate a random but unique number in Java -


i trying generate random unique number every http request hitting application.

how make sure uniqueness of such number. java provide method or api this?

you use java.util.random - http://java.about.com/od/javautil/a/randomnumbers.htm


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -