亂數排序研討

SQL Server Random Sort:

  • SELECT * FROM Northwind.Orders ORDER BY NEWID()
  • SELECT FirstName, LastName FROM Contact TABLESAMPLE (1 ROWS);

隨機亂數產生器:

洗牌演算法: