3 digit random number

Can a one point out as to how to generate a 3-digit random number between?


Dim r As New Random Dim i As Integer i = r.inrange(100, 999)

Untested. See http://developer.xojo.com/random$InRange

Hi Benny,

I developed some time ago this class, if you need several unique (non repeated) random numbers. You can adapt it to limit the numbers so they are in the three digits range, as pointed by Wayne.

Hope it helps!


Thank you very much.
Very good starting point.