Please help on my code to find out the four unique random numbers in android within the range of 1 to 60 : **This is what I tried so far in my app** 

  I got this code by Searching it from Google 

  **Inside the Button OnClick() I called the Arandom() method** 

    public void Arandom(View view) {
        final int SET_SIZE_REQUIRED = 4;
        final int NUMBER_RANGE = 70;
            Random random = new Random();

            Set set = new HashSet<Integer>(SET_SIZE_REQUIRED);

            while(set.size()< SET_SIZE_REQUIRED) {

                while (set.add(random.nextInt(NUMBER_RANGE)) != true) ;
            }
            assert set.size() == SET_SIZE_REQUIRED;
        ArrayList<Integer> Elements =  new ArrayList<>(set);
        Log.i("Elements","A:" + Elements.get(0));
        Log.i("Elements","B:" + Elements.get(1));
        Log.i("Elements","C:" + Elements.get(2));
        Log.i("Elements","D:" + Elements.get(3));

        }


***Now i am able to getting four Unique random numbers by this code but the problem is 
there sum is increasing 
Let me explain it little bit*** 

**When I run the code I get**
 
    A:61

    B:45

    C:31

    D:49 

 **[This is the screen shot of my log cat Click It ][1]** 

  [1]: https://i.stack.imgur.com/3m7Kf.png


  So I want The sum of all the numbers is within the specified range which is 1 to 60

e.g: A = 20 , B = 25 , C = 3 and D = 11 then their sum is 59 which is within the range 

Now another e.g: Suppose A = 5 , B = 22 , C = 18 and D = 3  then their sum will be 48  

 I Hope you Understand what I want
 
 when we Add A,B,C,D the their Sum Should no Exceed the Range that is 60 

 So Please Help me 

 I am New to Android and Java I am Learning my Own By Searching some materials on google 