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,
Try this:
SELECT RAND(convert(varbinary, newid()))*(b-a)+a magic_number
Where a is the lower number and b is the upper number
a
b