
	var RAND = 18;
	var t = 0;
	var DIRECTIONS = "DIRECTIONS: Circle the correct answer.";
	CHECK = new Array (RAND);
	USED = new Array (RAND);
	HOLDT = new Array (4);
     	CORRECT= new Array (10);
     	SHAPE = new Array ("trapezoid","parallelogram","rectangle","octagon","triangle","pentagon","rhombus","hexagon","square","acute","congruent","equilateral","isosceles","line","line segment","plane","ray","right","scalene");
	DEFINITION = new Array (18);
	 DEFINITION[0] = ("A quadrilateral that has one pair of opposite sides that are parallel.");
	 DEFINITION[1] = ("A quadrilateral that has two pairs of opposite sides that are parallel.")
	 DEFINITION[2] = ("A geometric shape with four sides that are right angles with the horizontal sides a different length than the vertical sides."); 
	 DEFINITION[3] = ("A geometric shape with eight sides.")
	 DEFINITION[4] = ("A geometric shape with three sides.");
	 DEFINITION[5] = ("A geometric shape with five sides.");
	 DEFINITION[6] = ("A quadrilateral that has all four sides congruent.");
	 DEFINITION[7] = ("A geometric shape with six sides.");
	 DEFINITION[8] = ("A geometric shape with four sides that are right angles and are of equal length.");
	 DEFINITION[9] = ("A triangle with all three angles less than 90°.");
	 DEFINITION[10] = ("Two shapes having the same size and shape, though they may have different orientation."); 
	 DEFINITION[11] = ("A triangle with three equal sides.");
	 DEFINITION[12] = ("A triangle with two equal sides.");
	 DEFINITION[13] = ("A geometric figure that continues forever in two directions. It has an arrow at each end.");
	 DEFINITION[14] = ("A geometric figure that has points at each end.");
	 DEFINITION[15] = ("A flat, two-dimensional object.");
	 DEFINITION[16] = ("A geometric figure with a point at one end and an arrow at the other.");
	 DEFINITION[17] = ("A triangle with one right (90°) angle.");
	 DEFINITION[18] = ("A triangle with all three sides unequal.");

	function CreateNumber()
	{
		t++;
		for (k = 0; k <= RAND; k++)
		{
			CHECK[k] = 0;
		}
		for (j = 0; j < 5; j++)
		{
      	      		NUMBER1 = Math.random() * RAND;
	   		 NUMBER1 = Math.round(NUMBER1);
			if (USED[NUMBER1] == 1)
			{
				j = 1;
			}
			else
			{
				break;
			}
		}
      	      	NUMBER2 = Math.random() * 3 + 1;
	   	 NUMBER2 = Math.round(NUMBER2);
		CHECK[NUMBER1] = 1;
		USED[NUMBER1] = 1;
		PROBLEM = t + ". " + DEFINITION[NUMBER1]
		for (i = 1; i < 5; i++)
		{
      	      		NUMBER = Math.random() * RAND;
	   		 NUMBER = Math.round(NUMBER);
			HOLDT[i] = SHAPE[NUMBER];
			if (CHECK[NUMBER] == 1)
			{
				i--;
			}
			else
			{
				CHECK[NUMBER] = 1;
			}
		}
		HOLDT[NUMBER2] = SHAPE[NUMBER1];
		CORRECT[t] = SHAPE[NUMBER1];
		HOLD = "1. " + HOLDT[1] + "&nbsp;&nbsp;&nbsp;&nbsp;2. " + HOLDT[2] + "&nbsp;&nbsp;&nbsp;&nbsp;3. " + HOLDT[3] + "&nbsp;&nbsp;&nbsp;&nbsp;4. " + HOLDT[4];
	}
