$Form = M("tablename");
$list = $Form->limit(10)->order('rand()')->select();
本文转自 IT阿飞 51CTO博客,原文链接:http://blog.51cto.com/itafei/1752910