Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Something easy - random number generating

Status
Not open for further replies.

maddave

Technical User
Jan 3, 2002
72
GB
Hi, I just need a quick answer but cant find the code anywhere. When a form loads I just need a random number to be generated into a label, about four significant figures.

Im sure this is very easy but have only been learning vb code for about 10 hours, so any help would be great!!
cheers
 
VBHelp - Rnd function


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
JESTAR
I notice that your faq222-3198 still contains the error that I pointed out to you 2 months ago.

The last example generates numbers between 30 and 100 not between 30 and 70 as stated


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top