4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by dlplenin
0

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:

http://www.winnershtriangle.com/w/VBNetHelp_GeneratingRandomNumbers.asp
and here:
http://articles.techrepublic.com.com/5100-10878_11-5663283.html

Edited by MaxDes: n/a

0

try using this code to generate random numbers

Dim a as integer
a = Rnd(10000000) * 10000000000000
textbox1.text= a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.