Unique Numbers In Java

This was used in my Tomm and Jerri Application. Taken help from StackOverflow. You can check out this application here.