public Binomial(int n, double p) throws ParameterException {
		if (n < 1 || p < 0 || p > 1) {
			throw new ParameterException("Binomail parameters n in N, 0 <= p <= 1.");
		} else {
			this.n = n;
			this.p = p;
			bern = new Bernoulli(p);
		}
	}