View difference between Paste ID: BehfmA32 and 1kFkKHdJ
SHOW: | | - or go back to the newest paste.
1
<?php
2
function test($condition)
3
{
4
	$results = Array(a,b,c,d,e,f,g,h,i,j);
5-
	return $results[$condition+1];
5+
	return $results[$condition-1];
6
}
7
8
echo test(mt_rand(1, 10));
9
?>