Use this code:
Random rand = new Random(7);
return String.valueOf(Math.abs(rand.nextInt()));
Right now you are representing the Random
instance.
Instead printing the String
representation of the mathematical absolute of the next int
of your random will do the trick.
The Math.abs
part is important, otherwise you might have negative numbers.