综合题6_编程题2.html 362 B

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. </head>
  8. <body>
  9. <script>
  10. var num = Math.random();
  11. num = num * 101;
  12. num = Math.floor(num);
  13. console.log(num);
  14. </script>
  15. </body>
  16. </html>