發紅包隨機金額的兩種方式

總結下微信紅包隨機函數數組 1   固定面額      即 輸入金額生成已知的固定金額安全 //total 紅包總金額 protected function randCoupon($total=30){ $denomination = array(10,5,3,2,1);//固定面額 $arr = array(); while ($tota
相關文章
相關標籤/搜索