VB新手,想知道如何编辑代码可以随机产生10个不重复的1-100的数

2025-03-23 06:05:21
推荐回答(1个)
回答1:

randomize
dim a(9) as byte
for i = 0 to 9
a(i) = int(rnd * 99 + 1)
next