plznty Posted October 8, 2010 Share Posted October 8, 2010 I know this is not coding.. However... How tolerant is PHP from generating a random output from 1000s of entry columns in a mysql database. I would like to make a script that would potentially pick one of a 1000 results at random. is this a problem with being ran multiple times? Quote Link to comment https://forums.phpfreaks.com/topic/215432-php-random/ Share on other sites More sharing options...
Adam Posted October 8, 2010 Share Posted October 8, 2010 What do you mean by tolerant exactly? Between 1000s of options rand() will server it's purpose, however the result is not truly random. Really no computer can generate a random number based on mathematical formulas. Unless you have some legal obligation to prove you're generating a 100% organic random number though, rand() should be adequate for you. Quote Link to comment https://forums.phpfreaks.com/topic/215432-php-random/#findComment-1120249 Share on other sites More sharing options...
plznty Posted October 8, 2010 Author Share Posted October 8, 2010 Yeah I know about pseudo-random. I'll just test it. Thanks anyway Quote Link to comment https://forums.phpfreaks.com/topic/215432-php-random/#findComment-1120259 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.