java – Create an int table with 100 random numbers in the range 0-1000

I working on my homework and because Im beginner Im asking for a help with my task.
Need to create an int table with 100 random numbers in the range 0-1000 and then:
a)find the biggest element
b)calculate the arithmetic mean
c)calculate the median

If someone can help with that and show me the way how to do it.
Thanks and appreciate for that

Basic code:

public static void main(String() args) {
    int size = 1000;
    int max = 5000; 
    int() array = new int(size);
    int loop = 0;