old_contents: 'use strict';
  
  
  var assert = require( 'assert' );
  var randMod = require( '../lib/index.js' );
  
  var toyRandFunc = randMod.makeRandWithAM(3,31,9);
  var toyRandList = randMod.genRandList( 30, toyRandFunc );
  var toyRandExpectedList = 
  	[27,19,26,16,17,20,29,25,13,8,24,10,30,28,22,
  	4,12,5,15,14,11,2,6,18,23,7,21,1,3,9];
  
  var randFunc = randMod.makeRand(1);
  var randList = randMod.genRandList(10000, randFunc);
  randList.reverse();
  var randList16 = randList.slice(0,16);
  
  var expectedResult = [1043618065,
  1484786315, 925166085, 1614852353, 721631166,
  173942219, 1229443779, 789328014, 570809709, 
  1760109362, 270600523, 2108528931, 16480421, 
  519782231, 162430624, 372212905];
  
  //var i;
  //for( i = 0; i < 16; i++) {
  //	console.log( i + ') ' + randList[ i ] );
  //}
  //console.log(randList16);
  
  // console.log('toyRandList = ' + toyRandList);
  // console.log('toyRandExpectedList = ' + toyRandExpectedList);
  
  //assert.deepEqual(randList16, expectedResult);
  
  describe( 'htfrand', function() {
  	describe( 'randList16 test', function() {
  		it( 'should be equal to expectedResult', function() {
  			assert.deepEqual(randList16, expectedResult);
  		});
  	});
  	describe('toyRandList test', function() {
  		it( 'should be equal to toyRandExpectedList', function() {
  			assert.deepEqual( toyRandList, toyRandExpectedList );
  		});
  	});
  });
  
  
  
  
  
  
  
  // MODULES //
  
  //var // Expectation library:
  //	chai = require( 'chai' ),
  
  	// Module to be tested:
  //	lib = require( './../lib' );
  
  
  // VARIABLES //
  
  //var expect = chai.expect,
  //	assert = chai.assert;
  
  
  // TESTS //
  
  /*
  describe( 'compute-htfrand', function tests() {
  
  	it( 'should export a function', function test() {
  		expect( lib ).to.be.a( 'function' );
  	});
  
  	it( 'should do something' );
  
  });
  */
  
  
new_contents: 'use strict';
  
  
  var assert = require( 'assert' );
  var randMod = require( '../lib/index.js' );
  
  var toyRandFunc = randMod.makeRandWithAM(3,31,9);
  var toyRandList = randMod.genRandList( 30, toyRandFunc );
  var toyRandExpectedList = 
  	[27,19,26,16,17,20,29,25,13,8,24,10,30,28,22,
  	4,12,5,15,14,11,2,6,18,23,7,21,1,3,9];
  
  var htfRandFunc = randMod.makeHtfRand( 1 );
  var randList = randMod.genRandList( 10000, htfRandFunc );
  
  // START Temp code
  var itemp;
  var Ntemp = 33;
  for(itemp = 0; itemp < Ntemp; itemp++) {
  	console.log( randList[ itemp ] );
  }
  
  var randFunc2d = randMod.makeHtfRand( 1 );
  var shuffRand = randMod.mkHtfShuff( randFunc2d );
  
  console.log( "first call to shuffRand = " + shuffRand() );
  
  // END Temp code
  
  
  randList.reverse();
  var randList16 = randList.slice(0,16);
  
  var expectedResult = [1043618065,
  1484786315, 925166085, 1614852353, 721631166,
  173942219, 1229443779, 789328014, 570809709, 
  1760109362, 270600523, 2108528931, 16480421, 
  519782231, 162430624, 372212905];
  
  var Ktoy = 8;
  var shuffTabToy = new Array( Ktoy );
  var itoy;
  var htfShuffToy;
  
  // Make another toyRandFun
  var toyRandFunc2 = randMod.makeRandWithAM(3,31,9);
  
  for(itoy = 0; itoy < Ktoy; itoy++) {
  	shuffTabToy[ itoy ] = toyRandFunc2();
  }
  
  htfShuffToy = randMod.mkHtfShuffWithK(toyRandFunc2, shuffTabToy, Ktoy);
  
  describe( 'htfrand module tests', function() {
  	describe( 'randList16 test', function() {
  		it( 'should be equal to expectedResult', function() {
  			assert.deepEqual(randList16, expectedResult);
  		});
  	});
  	describe('toyRandList test', function() {
  		it( 'should be equal to toyRandExpectedList', function() {
  			assert.deepEqual( toyRandList, toyRandExpectedList );
  		});
  	});
  	describe('htfShuffToy test', function() {
  		it( 'should be equal to 29', function() {
  			assert.equal( htfShuffToy(), 29 );
  		});
  		it( 'should be equal to 19', function() {
  			assert.equal( htfShuffToy(), 19 );
  		});
  		it( 'should be equal to 8', function() {
  			assert.equal( htfShuffToy(), 8 );
  		});
  		it( 'should be equal to 16', function() {
  			assert.equal( htfShuffToy(), 16 );
  		});
  		it( 'should be equal to 25', function() {
  			assert.equal( htfShuffToy(), 25 );
  		});
  		it( 'should be equal to 20', function() {
  			assert.equal( htfShuffToy(), 20 );
  		});
  	});
  });
  
  
  // MODULES //
  
  //var // Expectation library:
  //	chai = require( 'chai' ),
  
  	// Module to be tested:
  //	lib = require( './../lib' );
  
  
  // VARIABLES //
  
  //var expect = chai.expect,
  //	assert = chai.assert;
  
  
  // TESTS //
  
  /*
  describe( 'compute-htfrand', function tests() {
  
  	it( 'should export a function', function test() {
  		expect( lib ).to.be.a( 'function' );
  	});
  
  	it( 'should do something' );
  
  });
  */
  
  
subject: Add tests for Bays-Durham shuffle. Add basis for further tests. TODO: running tests is ugly right now and need to clean up.