生成≥a且≤b的随机数 x=a y=(b-a)+1
select floor(x+rand()*y);
例如生成≥2且≤10的随机数
select floor(2+rand()*9);
posted on 2022-09-09 10:30 小馬過河﹎ 阅读(99) 评论(0) 收藏 举报