There are number of way to generate unique number or id in mysql  and  php.

Using Rand() function. we can get random data with in  limit

SELECT  *   FROM company ORDER BY RAND() LIMIT 10
  1. <html>  
  2.  <body>  
  3. <?
  4. echo str_replace (“}”,””,str_replace(“{“,””,com_create_guid()));
  5. ?>
  6. <?$number= mt_rand(500 pan>,1000); ?>
  7. <? $uniqid = date(‘U’) . mt_rand(0,9); ?>
  8. <? echo time();?>
  9.  </body>   
  10. </html>  
eXTReMe Tracker