' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Function RanTest()
    Dim n(10) As Integer
    Dim i, r As Integer
    For i = 1 To 1000
        r = Int(Rnd() * 10) + 1
        n(r) = n(r) + 1
    Next
    MsgBox Str(n(1)) & " " & Str(n(2)) & " " & Str(n(3)) & " " & _
           Str(n(4)) & " " & Str(n(5)) & " " & Str(n(6)) & " " & _
           Str(n(7)) & " " & Str(n(8)) & " " & Str(n(9)) & " " & _
           Str(n(10))
End Function
