Sub Main()
Dim x(24) As Integer
Dim i As Integer
Randomize()
For i = 0 To 24
x(i) = Int(Rnd() * 25)
Next
For i = 0 To 24
Console.Write(x(i) & " ")
Next
Console.ReadLine()
End Sub
我本身以為它可把Rnd()內的隨機數整理好, 令到隨機數不會出現相同, 但我試過多次測試, 發覺一樣會有相同隨機數的出現...