Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
A better way to reate a random number between two ...
Author:
X-OR
Submitted:
5/21/2001
Version:
VB3
Compatibility:
VB3, VB4, VB5, VB6
Category:
Mathematics
Views:
9416
A better way to reate a random number between two numbers.
Declarations:
'none
Code:
Public Function CreateRandNumber(int1stnumber As Integer, int2ndnumber As Integer) As Integer Randomize Timer CreateRandNumber = Int(Rnd * (int2ndnumber - int1stnumber)) + int1stnumber End Function
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement