public static void main(String[] args) {
		
		int N = 12;
		double[] X = new double[N];
		double sum = 0.0;
		
		for(int i = 1; i < N-1; i ++){
			X[i] = poisson(10, i);
			sum += X[i];
			System.out.println(i + " "+ X[i]);
		}
		
		for(int i = 1; i < N-1; i ++){
			X[i] = X[i]/sum;
		}
		
		System.out.println("Normalizado");
		sum = 0;
		for(int i = 1; i < N-1; i++){
			System.out.println(i + " "+ X[i]);
			sum +=  X[i];
		}
		System.out.println("Normalizado "+sum);
		
		Discrete d = new Discrete(X);
		
		for (int i = 1; i < 10; i++)
			System.out.println(i + " "+ d.random());
		
//		/*int N = Integer.parseInt(args[0]);
//		double[] X = { 0, .1, .4, .12, .38, 0 };
//		int[] hist = new int[N + 2];
//		Discrete d = new Discrete(X);
//		for (int i = 0; i < N; i++)
//			hist[d.random()]++;
//
//		for (int i = 1; i <= X.length - 2; i++)
//			System.out.println(i + ":  " + X[i] + " " + (1.0 * hist[i] / N));*/

	}