VB如何编程实现在区间[1,100]的100个随机数

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/29 10:52:26

VB如何编程实现在区间[1,100]的100个随机数

代码如下: dim i,a(100) as integer randomize for i=0 to 99 a(i)=int(rnd*(100-1+1))+1 '这是一个公式, next