When you are saying "record", what do you mean?
If you meand a record from a database query:
1. issue the query and get the resource identifier
2. ascertain the number of records in the set.
3. use the rand() function to get a random number between 0 and the number of records -1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.