public void randDnaSeqGetBaseTest(int numTests, int numTestsPerSeq, int lenMask, long seed) {
		Random rand = new Random(seed);

		for( int t = 0; t < numTests; t++ ) {
			String seq = "";
			int len = (rand.nextInt() & lenMask) + 10; // Randomly select sequence length
			seq = randSeq(len, rand); // Create a random sequence

			if( verbose ) System.out.println("DnaNSequence test:" + t + "\tlen:" + len + "\t" + seq);
			DnaNSequence bseq = new DnaNSequence(seq);

			// Retrieve numTestsPerSeq random bases from the sequence
			for( int i = 0; i < numTestsPerSeq; i++ ) {
				int randPos = rand.nextInt(len);
				char baseOri = seq.charAt(randPos);
				char baseBin = bseq.getBase(randPos);
				Assert.assertEquals(baseOri, baseBin);
			}
		}
	}