侧边栏壁纸
博主昵称
梦之中小俊

以前高中时,羡慕大学考试只要及格就行;现在大学了,怀念高中考试及不及格都行??

PHP

php 大乐透彩票规则

梦之中小俊
2022-10-20 / 0 评论 / 417 阅读 / 推送成功!
_num=$num;
        $this->_type=$type;
    }
 
    public function setType($value){
        $this->_type = $value;
    }
 
    public function setNum($value){
        $this->_num = $value;
    }
 
    //体彩大乐透
    public function getLotteryNumberDLT(){
        $temp_str = '';
        $temp_arr = array_merge($this->getNoRand(1,35,5),$this->getNoRand(1,12,2));//生成大乐透模拟数据数组
 
        foreach($temp_arr as $key => $value){//拼接成数组
            if($value < 10 ){
                $temp_value = '0'.$value;//一个数则做前置0处理
            }else{
                $temp_value = $value;
            }
            if($key == 4){
                $temp_str .= $temp_value.'  +  ';
            }else{
                $temp_str .= $temp_value.' _ ';
            }
            $temp_str .= $temp_value.' _ ';
        }
        return trim($temp_str,' _ ');
    }
 
    public function getLotteryNumberDLTArray(){
        $temp_arr = array_merge($this->getNoRand(1,35,5),$this->getNoRand(1,12,2));//生成大乐透模拟数据数组
        return $temp_arr;
    }
    public function getLotteryNumberDLTArrayMore(){
        $temp_data = array();
        if($this->_num){
            for($i=1;$i<=$this->_num;$i++){
                $temp_data[$i]= $this->getLotteryNumberDLTArray();
            }
        }
        return $temp_data;
    }
 
    public function getLotteryNumberDLTMore(){
        $temp_data = array();
        //$temp_data['0'] = '体彩大乐透,祝君中奖~';
        if($this->_num){
            for($i=1;$i<=$this->_num;$i++){
                $temp_data[$i]= $this->getLotteryNumberDLT();
            }
        }
        return $temp_data;
    }
 
    protected function getNoRand($begin=0,$end=20,$limit=5){
        $rand_array=range($begin,$end);
        shuffle($rand_array);//调用现成的数组随机排列函数
        $arr_tmp = array_slice($rand_array,0,$limit);
        sort($arr_tmp);
        return $arr_tmp;//截取前$limit个
    }
 
}
 
$Lottery_obj = new LotteryClass(1,5);
//$test_data = $Lottery_obj->getLotteryNumberDLTMore();
$test_data2 = $Lottery_obj->getLotteryNumberDLTArrayMore();
 
//var_dump($test_data2);
 
/*
array (size=6)
  0 => string '体彩大乐透,祝君中奖~' (length=31)
  1 => string '18 _ 21 _ 02 _ 20 _ 09  +  11 _ 12' (length=34)
  2 => string '28 _ 07 _ 18 _ 09 _ 27  +  10 _ 07' (length=34)
  3 => string '08 _ 06 _ 12 _ 19 _ 30  +  04 _ 03' (length=34)
  4 => string '32 _ 01 _ 26 _ 18 _ 16  +  09 _ 11' (length=34)
  5 => string '34 _ 08 _ 21 _ 15 _ 07  +  08 _ 04' (length=34)
*/
 
?>
 



    
    
    
    体彩大乐透,祝君中奖~



   
$value){ ?> $v){ ?>

体彩大乐透,祝君中奖~



大乐透玩法

超级大乐透是指由购买者从01—35共35个号码中选取5个号码为前区号码,并从01—12共12个号码中选取2个号码为后区号码组合为一注彩票进行的基本投注。每注金额人民币2元。

在本站中,大乐透支持的玩法有:大乐透单式投注,大乐透复式投注,大乐透方案粘贴

大乐透单式投注:由购买者从01—35共35个号码中选取5个号码为前区号码,并从01—12共12个号码中选取2个号码为后区号码,组合为一注彩票进行的基本投注。

大乐透玩法_大乐透规则_超级大乐透玩法规则


中奖规则

大乐透玩法_大乐透中奖规则【2014最新】_超级大乐透中奖规则_奖金

超级大乐透根据投注号码与开奖号码相符情况确定相应中奖资格。具体规定如下:

一等奖:投注号码与当期开奖号码全部相同(顺序不限,下同),即中奖;

二等奖:投注号码与当期开奖号码中的5个前区号码及任意1个后区号码相同,即中奖;

三等奖:投注号码与当期开奖号码中的5个前区号码相同,或者任意4个前区号码及2个后区号码相同,即中奖;

四等奖:投注号码与当期开奖号码中的任意4个前区号码及任意1个后区号码相同,或者任意3个前区号码及2个后区号码相同,即中奖;

五等奖:投注号码与当期开奖号码中的任意4个前区号码相同,或者任意3个前区号码及1个后区号码相同,或者任意2个前区号码及2个后区号码相同,即中奖;

六等奖:投注号码与当期开奖号码中的3个前区号码相同,或者任意1个前区号码及2个后区号码相同,或者任意2个前区号码及任意1个后区号码相同,或者2个后区号码相同,即中奖。

当期每注投注号码只有一次中奖机会,不能兼中兼得,特别设立奖除外。

本文共 个字数,平均阅读时长 ≈ 分钟,您已阅读:0时0分0秒。
3

打赏

评论 (0)

OωO
  • ::(呵呵)
  • ::(哈哈)
  • ::(吐舌)
  • ::(太开心)
  • ::(笑眼)
  • ::(花心)
  • ::(小乖)
  • ::(乖)
  • ::(捂嘴笑)
  • ::(滑稽)
  • ::(你懂的)
  • ::(不高兴)
  • ::(怒)
  • ::(汗)
  • ::(黑线)
  • ::(泪)
  • ::(真棒)
  • ::(喷)
  • ::(惊哭)
  • ::(阴险)
  • ::(鄙视)
  • ::(酷)
  • ::(啊)
  • ::(狂汗)
  • ::(what)
  • ::(疑问)
  • ::(酸爽)
  • ::(呀咩爹)
  • ::(委屈)
  • ::(惊讶)
  • ::(睡觉)
  • ::(笑尿)
  • ::(挖鼻)
  • ::(吐)
  • ::(犀利)
  • ::(小红脸)
  • ::(懒得理)
  • ::(勉强)
  • ::(爱心)
  • ::(心碎)
  • ::(玫瑰)
  • ::(礼物)
  • ::(彩虹)
  • ::(太阳)
  • ::(星星月亮)
  • ::(钱币)
  • ::(茶杯)
  • ::(蛋糕)
  • ::(大拇指)
  • ::(胜利)
  • ::(haha)
  • ::(OK)
  • ::(沙发)
  • ::(手纸)
  • ::(香蕉)
  • ::(便便)
  • ::(药丸)
  • ::(红领巾)
  • ::(蜡烛)
  • ::(音乐)
  • ::(灯泡)
  • ::(开心)
  • ::(钱)
  • ::(咦)
  • ::(呼)
  • ::(冷)
  • ::(生气)
  • ::(弱)
  • ::(狗头)
泡泡
阿鲁
颜文字
取消
  1. 头像
    6767 Lv.1
    iPhone · Safari
    沙发

    画图

    回复
  2. 头像
    6767 Lv.1
    Windows 10 · Google Chrome
    板凳

    表情

    回复
  3. 头像
    透露 Lv.2
    Android · QQ Browser
    第30楼

    649494848

    回复