public class RandomExample {
	public static void main(String[] args) {
		int maxValue = 10;
		int x = 5;
		
		do {
			System.out.print("Try: " + x + ", Value: ");
			System.out.println((int)(1 + Math.random() * maxValue));
		}
		while (x-- > 1);
	}
}