[TuT]Generate Random Number

Posts 1–2 of 2 · Page 1 of 1
[TuT]Generate Random Number
Code:
  Dim rnd As New Random
        TextBox1.Text = rnd.Next(0, 10).ToString("0")
The 0 is Minimum Value
The 10 is Max
The "0" is # of numbers, ie, 0000 would generate a 4 digit number, IF you change 10 to a 4 digit number
Hmmmmm... I think I get it. Wait I got it.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us