Here is an example of code that will randomize the number and show it in a textbox. I haven't added all of it so that you can learn a little about it as well.
Dim RandomClass As New Random() Dim RandomNumber As Integer RandomNumber = RandomClass.Next TextBox1.Text = RandomNumber
You can also look here:
try using this code to generate random numbers
Dim a as integer
a = Rnd(10000000) * 10000000000000
I think u need something like this:
Becaise if you want generate a number like a bank acccount number, you need a algorithm because each number in account has a meaning sucha as city, branch, etc.
I hope this helps