package week12day3;

import java.util.Random;

public class Yoda {
	public static void main(String[] args) throws Exception{
		Random rng = new Random();
		if(rng.nextInt(2)==1){
			Do();
		}
		else{
			DoNot();
		}
	}
	
	public static void Do(){
		System.out.println("You did it!");
	}
	
	public static void DoNot() throws Exception{
		throw new Exception("No try!");
	}
}
