方法1:
0至N-1之间,如cast( floor(rand()*100) as int)就会生成0至99之间任一整数
1至N之间,如cast(ceiling(rand() * 100) as int)就会生成1至100之间任一整数
Powered by: 博客园 Copyright © 2024 moss_tan_jun Powered by .NET 8.0 on Kubernetes