If you have a fixed number of random numbers, you can create a list and shuffle it.



public class Numbers{

static List<Integer> lstNumber = new ArrayList<Integer>();

public static...