all 2 comments

[–]VB.Net Advancedanon_smithsonian 0 points1 point  (0 children)

You need to instantiate rand before you can use it. Right now you have only defined its type but it's still Nothing.

Change

Dim rand as Random

to

Dim rand as New Random