随机4位小数

select convert(numeric(18,4),'0.'+rtrim(abs(checksum(newid()))))

原文地址:https://www.cnblogs.com/emmy/p/2631675.html