作者billmin (hahaha)
看板PHP
标题[请益] rand问题
时间Sat Dec 3 11:12:29 2005
要如何确保每次随机取样的数字不会重复阿
有没有高手可以指点一下
谢谢 ^^
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.139.82.207
1F:推 johnney:rand() run 久了...一定会一样..try uniqid() 12/03 11:59
2F:推 appleboy46:你用这个吧 uniqid(rand()) 我都是取这样 12/03 15:27
3F:推 billmin:感恩唷 ^^ 12/03 20:28
4F:推 SIXERGOGO:请问一下唷 我用uniqid(rand())他是出现一组数字而非一 12/04 19:21
5F:→ SIXERGOGO:个耶 要怎麽让他是出现一个乱数阿 ? 12/04 19:22