隨機猜拳!!!

<?php
		include("include/function.php");

	$handm = rand(1,3); //取得亂數
	
	if ($handm == 1){ //設定檔名
		$hand = "scissors.png";	
	}
	if ($handm == 2){
		$hand = "rock.png";	
	}
	if ($handm == 3){
		$hand = "paper.png";	
	}
?>

<img src="images/<?php echo $hand; ?>" />
// 使用檔案