本帖最后由 360fans821691403 于 2021-2-27 11:08 编辑
随机不重复生成.rar
(1.12 MB)
在excel 里面 vba添加以下模块 结果反馈为恶意软件(virus.office.qexvmc.1065)
Sub c()
Dim s%, i%
Set d = CreateObject(ing.dictionary)
For i = 1 To 3
Do Until d.Count = 6
s = Int(Rnd * 33 + 1)
d(s) =
Loop
Cells(i, 1).Resize(1, d.Count) = d.Keys
d.RemoveAll
Next
End Sub |
|
|
|
评论
直达楼层