This repository has been archived on 2026-06-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
sgd/ysqld/ysql03d/einsende/E2b_Lotto.php
T

10 lines
461 B
PHP

<?php
echo "<!DOCTYPE html>\t\n<html>\t\n<head>\t\t\n<title>E2b Lotto</title>\t\t\n</head>\t\n<body>\t\n";
$lotto = range (1, 49); //erstellt Zahlen von 1 bis 49
shuffle($lotto); //Mischt die Zahlen
//Ich gebe 6 Zahlen aus:
echo "<head><title>Lottogenerator</title></head>\t\n<center><h1>Lottozahlen</h1>\t\n<p> Die Lottozahlen sind: <b>$lotto[0], $lotto[1], $lotto[2], $lotto[3], $lotto[4], $lotto[5]</b></p></center>";
echo "</body>\t\n</html>";
?>