LOSTBOY Posted November 23, 2007 Share Posted November 23, 2007 hi , am a newbie to PHP & Mysql...very recently only i started my carrier in this domain... now i need to know is there is any functions available there to select random datas from table which should not repeated ................................... Quote Link to comment https://forums.phpfreaks.com/topic/78544-generating-non-redundant-random-numbers-using-mysql-functions/ Share on other sites More sharing options...
obsidian Posted November 23, 2007 Share Posted November 23, 2007 hi , am a newbie to PHP & Mysql...very recently only i started my carrier in this domain... now i need to know is there is any functions available there to select random datas from table which should not repeated ................................... To get random values from the table, you can ORDER BY RAND(), but if that is running too slow for your needs, check out this thread for some alternatives. Quote Link to comment https://forums.phpfreaks.com/topic/78544-generating-non-redundant-random-numbers-using-mysql-functions/#findComment-397487 Share on other sites More sharing options...
LOSTBOY Posted November 24, 2007 Author Share Posted November 24, 2007 ya ...i already know that ...but am not sure is it generate non redundant values? Quote Link to comment https://forums.phpfreaks.com/topic/78544-generating-non-redundant-random-numbers-using-mysql-functions/#findComment-397973 Share on other sites More sharing options...
fenway Posted November 24, 2007 Share Posted November 24, 2007 That's the definition of random. Quote Link to comment https://forums.phpfreaks.com/topic/78544-generating-non-redundant-random-numbers-using-mysql-functions/#findComment-398193 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.