Option explicit
Private subcommand 1_Click ()
Dim i is an integer, J is an integer, K is an integer, ss, tt () is an integer, and outzf is a string.
ss = Split(Text 1。 Text, ",")
Redim TT
K = Val (text 2. Text)
If k> discover (ss)+1then
MsgBox "The generated quantity you entered is greater than the quantity list, please correct it!"
outlet connection
If ... it will be over.
Irregular
do
j = Rnd * k
If tt(j) = 0, then
tt(j) = 1
Outzf = outzf & ampss(j) and amp ","
i = i + 1
If ... it will be over.
Multiple activities
Loop until I = K.
SMS 3. Text = outzf
End joint