1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 4. <head> 5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 6. <title>Lucky Numbers</title> 7. </head> 8. <body> 9. <?php // Script 4.6 - random.php 10. /* This script generates 3 random numbers. */ 11. 12. // Address error handling, if you want. 13. 14. // Create three random numbers: 15. $n1 = rand (1, 99); 16. $n2 = rand (1, 99); 17. $n3 = rand (1, 99); 18. 19. // Print out the numbers: 20. print "<p>Your lucky numbers are:<br /> 21. $n1<br /> 22. $n2<br /> 23. $n3</p>"; 24. 25. ?> 26. </body> 27. </html>