1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

一段随机生成体彩7位数号码的小程序

本帖由 A君2006-03-03 发布。版面名称:后端开发

  1. A君

    A君 Well-Known Member

    注册:
    2005-08-31
    帖子:
    19,987
    赞:
    98
    PHP:
    <?php

    echo "<font style=font-size:9px color=#000000 face=verdana><b>Netsa</b>,The Lucky Number Of Today:";
    for (
    $n=1;$n<=1;$n++) {
    $string=""//初始化字符串
    for ($i=1;$i<=7;$i++) {
    mt_srand((double)microtime()*77777777); 
    $random=mt_rand(0,9); //产生0-9间的随机数
    $string=$string.",".$random;
    echo 
    " <font style=font-size:9px color=#900009 face=verdana><b>",$random,"</b></font>";}
    echo 
    " , ";

    }
    echo 
    " <font style=font-size:9px color=#000000 face=verdana>Good Luck to you...</font><br><br>";
    ?>
    程序演示地址:http://ns.3-eye.net/pub/7.php
     
  2. notnull

    notnull New Member

    注册:
    2005-09-27
    帖子:
    11,720
    赞:
    37
  3. Tameway

    Tameway New Member

    注册:
    2005-09-06
    帖子:
    1,286
    赞:
    8
    SUCH A OLD CODE
     
  4. swenge

    swenge New Member

    注册:
    2005-11-28
    帖子:
    386
    赞:
    1
  5. comic

    comic New Member

    注册:
    2006-03-05
    帖子:
    302
    赞:
    2
    老是老,有用就行~~
     
  6. 火麒麟

    火麒麟 New Member

    注册:
    2006-03-12
    帖子:
    9
    赞:
    0
    能出500万么?