import java.io.PrintWriter;
import java.io.FileNotFoundException;

class Apr4 {

	public static void main(String[] args) {

		// print 10000 random integers between 1 to 10 to nums.txt 

		PrintWriter pw = null;

		try {
			pw = new PrintWriter("nums.txt");
		}
		catch(FileNotFoundException e) {
			System.out.println("File not found");
			System.exit(0);
		}
		
		for(int i = 0; i < 10000; i++) {
			long val = Math.round(Math.random() * 9 + 1);
			pw.printf("%d ", val);

		}		

		pw.close();

		// write a fragment that prints 10  "heads" or "tails" randomly.
		
		for(int i = 0; i < 10; i++) {

			long val = Math.round(Math.random());
			String str = (val == 0) ? "heads" : "tails";
			//System.out.println(str);
		}
		
		// print 10 random characters between 'A' and 'Z'

		for(int i = 0; i < 100; i++) {
			long val = Math.round(Math.random() * 25 + 65);
			char ch = (char)val;
			//System.out.println(ch);
		}

		// print 10 random dice
		for(int i = 0; i < 10; i++) {
			long codePoint = Math.round(Math.random() * 5 + 0x2680);
			System.out.printf("%c\n", (char) codePoint);
		}


	}


}
