All pastes #210503 Raw Edit

Untitled

public text v1 · immutable
#210503 ·published 2006-10-19 20:22 UTC
rendered paste body

	function shuffleQuestions ():Void
	{
		var $return_array = new Array();
		var $original_length = _questions.length;
		
		for ( var $i = 0; $i < o$riginal_length; $i++ )
		{
			var $random_number  = Math.floor ( MathUtils.randomBetween( 0, _questions.length ) );
			var $tmp 			= _questions.splice ( $random_number, 1 );

			$return_array[ $i ] = $tmp;
		}
		
		_questions = $return_array;
		
		for( var $i = 0; $i < _questions.length; $i++ )
		{
			trace ( _questions[ $i ].test()  );
		}
	}