View previous topic :: View next topic |
Author |
Message |
Stacy
Joined: 12 Oct 2004 Posts: 9
|
Posted: Tue Oct 26, 2004 8:42 am Post subject: How can I generate a random number in ASP.Net? |
|
|
How can I generate a random number in ASP.Net?
Stacy |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Tue Oct 26, 2004 9:00 am Post subject: |
|
|
Here you go:
Code: |
Dim oRandom As New Random()
Dim iNum As Integer
iNum = oRandom.Next(1, 10)
|
Cheers, _________________ Peter
ASP & ASP.NET Articles and Tutorials |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|