I need a different random number for each row in my table. The following seemingly obvious code uses the same random value for each row.
SELECT table_name,
Update my_table set my_field = CEILING((RAND(CAST(NEWID() AS varbinary)) * 10))
Number between 1 and 10.