thinkphp 随机获取一条数据

$data=$AD->field("ID,Answer,State")->limit(1)->order('rand()')->select();
原文地址:https://www.cnblogs.com/thinkingthigh/p/7086350.html