poe Posted May 23, 2007 Share Posted May 23, 2007 is there a best way todo random, either from an array or from a db. i could use: shuffle(), then array_slice() -i learned this trick here rand() array_rand() for some reason, i heard that the rand() method ISN'T as random as you may want?? Quote Link to comment https://forums.phpfreaks.com/topic/52721-random/ Share on other sites More sharing options...
per1os Posted May 23, 2007 Share Posted May 23, 2007 http://us.php.net/mt_rand Maybe that is what you are looking for? Quote Link to comment https://forums.phpfreaks.com/topic/52721-random/#findComment-260295 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.