A JAVA program that generates 500 random numbers and returns the Nth smallest number on the console, that the user asks.