All pastes #609735 Raw Edit

Something

public text v1 · immutable
·published 2007-07-09 01:28 UTC
rendered paste body
	function get_question($type, $questions)
	{			
		do {
			$random_question = rand(1, $questions['count']);	
		} while ($_SESSION['questions'][$type][$random_question]);
		
		return $random_question;
	}