介绍个通俗的方法
/*产生从N到M的随机整数,假设N、M都是整数*/


declare   @M   int,@N   int

set   @N=6
set   @M=13

select   cast((rand()*(@M-@N)+@N)   as   int)

相关文章:

  • 2021-06-10
  • 2021-10-31
  • 2021-10-18
  • 2021-10-29
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-10-10
  • 2022-12-23
相关资源
相似解决方案