从数据库中随机的取出n条数据

select top n * from table order by NewId()
因为newid()会产生一个guid()

编程技巧