那一抹夕阳
介绍个通俗的方法 /*产生从N到M的随机整数,假设N、M都是整数*/
declare @M int,@N int
set @N=6 set @M=13
select cast((rand()*(@M-@N)+@N) as int)
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3