網頁隨機猜拳

<?php
	include("include/function.php");
	//1 取得亂數
	$handn = rand(1,3);
	//echo $handn;
	//2 設定檔名
	if ($handn == 1){
		$hand = "scissors.png";
	} elseif ($handn == 2){
		$hand = "paper.png";
	} elseif ($handn == 3){
		$hand = "rock.png";
	}
	//3 到正確地方
	//echo $handn;
?>