First of, you have to create a Random object, such as:
Random r = new Random();
And then, if you want an int value, you should use nextInt
int myValue = r.nextInt(max);
Now, if you want that in an interval, simply do:
int myValue = r.nextInt(max-offset)+offset;
In your case:
int myValue = r.nextInt(300)+200;
You should check out the docs:
http://docs.oracle.com/javase/6/docs/api/java/util/Random.html