• SELECT TOP 1 AccountID, NewAccountId from #a

    ORDER BY CASE WHEN CAST((RAND() * 10) AS INT)%2 = 0 THEN AccountID ELSE NewAccountId END ASC

    Using newid() method is more "random" though.

    "Keep Trying"