Thanks Dave. The SecureRand() call is about 1000 times slower than a
call with RAND() so what I've done is mix the use of SecureRand() and
RAND(). By calling SecureRand() where it is more iterative, but use the
RAND() in the SQL SELECT statement.
nRandomRecords = INT( SecureRand()*10 ) + 1
SELECT TOP (nRandomRecords) RAND() AS nRand, * FROM Customers ORDER BY
nRAND INTO CURSOR c_Customers
On 11/20/2012 11:56 AM, Dave Crozier wrote:
Kevin,
This should do your job:
"I've created a wrapper function to replicate the functionalilty of RAND() but
instead using the CryptGenRandom call"
http://www.west-wind.com/wwthreads/Message2FL0H5YPG.wwt
Dave
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.