_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个号码为后区号码,组合为一注彩票进行的基本投注。

中奖规则

超级大乐透根据投注号码与开奖号码相符情况确定相应中奖资格。具体规定如下:
一等奖:投注号码与当期开奖号码全部相同(顺序不限,下同),即中奖;
二等奖:投注号码与当期开奖号码中的5个前区号码及任意1个后区号码相同,即中奖;
三等奖:投注号码与当期开奖号码中的5个前区号码相同,或者任意4个前区号码及2个后区号码相同,即中奖;
四等奖:投注号码与当期开奖号码中的任意4个前区号码及任意1个后区号码相同,或者任意3个前区号码及2个后区号码相同,即中奖;
五等奖:投注号码与当期开奖号码中的任意4个前区号码相同,或者任意3个前区号码及1个后区号码相同,或者任意2个前区号码及2个后区号码相同,即中奖;
六等奖:投注号码与当期开奖号码中的3个前区号码相同,或者任意1个前区号码及2个后区号码相同,或者任意2个前区号码及任意1个后区号码相同,或者2个后区号码相同,即中奖。
当期每注投注号码只有一次中奖机会,不能兼中兼得,特别设立奖除外。
本文共 个字数,平均阅读时长 ≈ 分钟,您已阅读:0时0分0秒。
649494848