法一:
select top 10 * from tablename order by NEWID()
说明: top 10:前10条数据 tablename:数据表的名字
NEWID():随机函数
法二: