Skip to content

Instantly share code, notes, and snippets.

@chang180
Created March 25, 2020 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chang180/a6d9481358013f88f6c9dd8e2b6682ff to your computer and use it in GitHub Desktop.
Save chang180/a6d9481358013f88f6c9dd8e2b6682ff to your computer and use it in GitHub Desktop.
威力彩_php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>威力彩_php</title>
</head>
<body>
<h2>
<?php
$roll=array_rand(range(1,38),6);
$special = array_rand(range(1,8));
echo "A區的號碼為";
foreach($roll as $value) echo ($value+1)."&nbsp";
echo "<br>"."<br>"."B區的號碼為".($special+1);
?>
</h2>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment