variable = Rnd(0)
The command Rnd returns a random number from 0 through 32767. The number passed to Rnd has no effect, but is required.
Dim A As Integer A = Rnd(0)
Internally, this function is pseudorandom; it creates a random number based on previous values. When powered off and turned back on again, the same pattern of random values is generated. Thus, this function is not a true random number generator.