|
|
Home » Visual Basic » Article
Visual Basic Generate your own Random Numbers
|
| Article by: | Thaha Hussain (10/12/2002) |
|
| Sponsored by: | FindMyHosting - Web Hosting Search |
| Summary: | This simple program generates random numbers using the basic mathematical methods. |
|
| Viewed: 67174 times |
Rating (13 votes): |
|
3.8 out of 5 |
|
|
|
Visual Basic Generate your own Random Numbers
This simple program generates random numbers using the basic mathematical methods. The methods are 1. Mixed Congruential 2. Multiplicative Congruential 3. Additive Congruential. Understand the simple mathematics involved! No API's used.
Download Project (6KB)
|
|
View highlighted Comments
User Comments on 'Visual Basic Generate your own Random Numbers'
|
|
|
Posted by :
Archive Import (LaFollet) at 13:25 on Friday, April 18, 2003
|
It doesn't really generate random numbers, if you put the same input in it always generates the same number, that's not very random...
| |
|
|
Posted by :
Archive Import (Deetch) at 04:18 on Thursday, June 26, 2003
|
In VBA for Excel you can just use the Randomize function. In basic I always used computertime to get the startingpoint for the RND function
| |
Posted by :
suresh at 14:46 on Monday, September 29, 2003
|
hi,
i needed help in generating 6 random numbers from 1 to 49 in a array of labels. the numbers should be generated when the command button is clicked. the generated numbers should be in ascending order, the numbers should not be repeated.
| |
|
To post comments you need to become a member. If you are already a member, please log in .
| RELATED ARTICLES |
Generate License Keys (such as CD keys on Microsoft software) by Brian Gillham
This class allows you to generate license keys, such as the CD keys on the case of most Microsoft software |
 |
Visual Basic Read and Modify the Registry by Kenneth Ives
Perform the four basic functions to the Windows registry. Add, change, delete, and query. Allows you to to read registry values, and modify both keys and values.
|
 |
Communicating with the Database (Using ADO) by Chaudhary Pradeep K. Roy
Using ADO to get connected with the database. |
 |
Generate an Array of Unique Random Numbers by Brian Gillham
This function will generate an ARRAY of TRULY random numbers. |
 |
Beginning Resource Files in Visual Basic by Kenneth Ives
Have you ever wanted to use graphics, such as icons, bitmaps, cursors, and AVI files? How about sound or even message box text? This can be an enormous amount of overhead. These are all examples of more files to keep track of when you distribute an application, DLL, or OCX. Lets find out how resource files can help.... |
 |
Visual Basic Compact/Repair Access Database Utility by Kenneth Ives
This utility will compact and repair the access database you select. It is actually more convenient to use this utility than do the same task with Access, because you don't have to save the database with a different name and then delete the old database when you are done: here, a temporary copy of the database is automatically created and deleted. |
 |
Creating a watermark in Excel with VBA by Kenneth Ives
Adding a watermark to an Excel spreadsheet using VBA. |
 |
Generate your own Random Numbers by Thaha Hussain
This simple program generates random numbers using the basic mathematical methods. |
 |
Change Cursor to Hour Glass by Brian Gillham
A simple script to change the cursor to an hour glass. |
 |
Analog Clock by Thaha Hussain
This program demonstrates Thaha Hussain's Clock Work Formula to paint an Analogue Clock. |
 |
| |