Re: [請益] rand問題

看板PHP作者 (貓貓的大玩偶)時間17年前 (2007/02/09 21:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/5 (看更多)
※ 引述《satire (夫復何求..)》之銘言: 引言恕刪 根據PHP手冊上面的說明: As of PHP 4.2.0, there is no need to seed the random number generator with srand() or mt_srand() as this is now done automatically. PHP 4.2.0版之後就不用呼叫srand()函數,因為rand()的時候會自動幫你做這個動作 另外PHP手冊也推薦使用mt_rand(),產生亂數的效果比較好 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 222.157.113.76
文章代碼(AID): #15p7vQqe (PHP)
文章代碼(AID): #15p7vQqe (PHP)