/**
 * Class which fills array of integers in current thread or separate threads
 * depending on invocation
 */
public class ArrayFiller implements Runnable {
int[] array; // local reference to passed array
int latency; // required latency to simulate real environment
int minValue, maxValue; // min and max allowed values for array cells
int from, to; // range which should be filled by this filler
Random random; // Pseudo-random generator

public ArrayFiller(int[] array, int latency, int minValue, int maxValue) {
// call another constructor from this constructor and fill missing
// values

}

public ArrayFiller(int[] array, int latency, int minValue, int maxValue,
int from, int to) {
// TODO save passed values to created filler object
// Create and initialize pseudo-random generator. See more at:
// http://docs.oracle.com/javase/7/docs/api/java/util/Random.html
}

@Override
public void run() {
// TODO when invoked, put filler to sleep for required amount of latency
// then fill array between from..to range with random values in
// minValue..maxValue range
}

}


Please help me to complete this excercise