public boolean[] source(int n, double p) {
		boolean[] bitsequence = new boolean[n];
		boolean bit;
		
		for (int i = 0; i < n; i++) {
			bit = false;
			
			if (this.random.nextDouble() < p) {
				bit = true;
			}
			
			bitsequence[i] = bit;
			
		}
		
		return bitsequence;
	}