那一抹夕阳
介绍个通俗的方法 /*产生从N到M的随机整数,假设N、M都是整数*/
declare @M int,@N int
set @N=6 set @M=13
select cast((rand()*(@M-@N)+@N) as int)
Copyright @ 2024 番茄的梦想 Powered by .NET 8.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster