Generate random numbers in the range from 0 to 350, limiting the result to 10 and collecting as a list. Later it could be typed.
However, there are no guarantees as to the type, mutability, serializability, or thread safety of the returned list.
List
and to get the int use array
int[] numbers = new Random().ints(0,350).limit(10).toArray();