I was just practicing java programming by myself using random and averaging numbers but I was having a difficult time to do it. The program will ask "Enter # to be rolled between 0 to 100". Then I enter '3' then the output will be random 3 numbers. 
My question is after 3 numbers come out, I want to find the average of those numbers. For example, I want my output to be

```
Your # is 89
Your # is 50
Your # is 12
Your avg is ##(//whatever the avg of numbers)

```

My output is like 

```
Enter # to be rolled between 0 to 100
3
Your # is 89
your avg is 29
Your # is 39
your avg is 13
Your # is 76
your avg is 25

```

Can you guys help me to solve this problem? I know my codes are mess.

```
import java.util.Random;
import java.util.Scanner;

public class ranEx {

    public static void main(String[] args) {

        Random ranNumber = new Random();
        Scanner input = new Scanner(System.in);

        int number;
        int ran;

        System.out.println("Enter # to be rolled "
                + "between 0 to 100");
        number = input.nextInt();

        for(int i=0; i<number; i++) {
            ran=ranNumber.nextInt(100);

            System.out.println("Your # is " + ran);

            int avg=ran/number;

            System.out.println("your avg is " + avg);

        }       

    }

}

```