 rand = gen.nextInt(); num = Math.abs(rand % all.length); lookUp = set.indexOf(new Integer(num)); 
   num = Math.floor(Math.random() * all.length); lookUp = index_of(set, num); 
	doSelection: function (ioCluster)	{		// Make sure this is a cluster		if (ioCluster.getChildren(true) != null)		{			// todo: check this			var gen = new Random();						var count = ioCluster.getSelectCount();			var all = ioCluster.getChildren(true);						var children = null;			var set = null;						var ok = false;			var rand = 0;			var num = 0;			var lookUp = 0;						// First select the Select Count number of children			if (count > 0)			{				// Check to see if the count exceeds the number of children				if (count < all.length)				{										// Select count activities from the set of children					children = new Array();					set = new Array();										while (set.length < count)					{						// Find an unselected child of the cluster 						ok = false;						while (!ok)						{							// todo: check this							rand = gen.nextInt();	// ...							num = Math.abs(rand % all.length);	// ...							lookUp = set.indexOf(new Integer(num));		// ...														if (lookUp == -1)							{								set[set.length] = num;								ok = true;							}						}					}										// Create the selected child vector					for (var i = 0; i < all.length; i++)					{						// todo: check this						lookUp = set.indexOf(new Integer(i));												if (lookUp != -1)						{							children[children.length] = all[i];						}					}										// Assign the selected set of children to the cluster					ioCluster.setChildren(children, false);									}			}		}	},
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/9a61eaa66de0d3d4142429f2960cc6a4b80b98e5/ADLSequencer.js/clean/Modules/Scorm2004/scripts/adl2js/ADLSequencer.js