random number

QueellFiextt

New Member
hi.. ive been trying to create a random number in asp.net with my old vbscript code, but its throwing all kinds of .net errors. can someone please show me some .net code that will work to create a random number in vb.net?Check out the Random class (in the System namespace).<BR><BR>If you want to get a random integer value between x and y, you can do:<BR><BR>Dim rndNumber as Random()<BR>Dim i as Integer = rndNumber.Next(x, y)<BR><BR>hthah. thank you :p
 
Back
Top