Click here to Skip to main content
16,007,126 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: User Control problem/error Pin
Shawn200010-Mar-05 10:23
Shawn200010-Mar-05 10:23 
Generaldataset sharing between forms Pin
rayfouc10-Mar-05 7:14
rayfouc10-Mar-05 7:14 
GeneralRe: dataset sharing between forms Pin
Raistlin21_4510-Mar-05 8:00
Raistlin21_4510-Mar-05 8:00 
GeneralRe: dataset sharing between forms Pin
j45mw12-Mar-05 17:12
j45mw12-Mar-05 17:12 
Generalplaying a wav file Pin
Raistlin21_4510-Mar-05 7:07
Raistlin21_4510-Mar-05 7:07 
GeneralHelp Required Upgrading VB6 project to VB Net -> specifically VarPtr solution Pin
Quenchmaster10-Mar-05 1:40
Quenchmaster10-Mar-05 1:40 
GeneralRandom Number Generator Pin
jarlath9-Mar-05 23:35
jarlath9-Mar-05 23:35 
GeneralRe: Random Number Generator Pin
J4amieC10-Mar-05 5:02
J4amieC10-Mar-05 5:02 
When asking for help on homework questions its good to keep in mind that people shouldnt/wont just give you the code...this would defeat the purpose. It is also import to describe what you've tried, and be specific about the question you are asking. A general question like the above will often illicit zero response.

OK, now for some help I can try to provide given the info above. There are many ways to approach this problem, i'll go with the easiest (far from the best, and very far from the most efficient).

In PSEUDOCODE:

1) Generate a random number between 1-49
2) Store number in a searchable list (eg ArrayList)
3) Generate another random number
4) If the number generated by 3) is already in the list from 2) go back to 3) and try again
5) continue 3) and 4) until 6 numbers + 1 bonus number are in list (ie list.Count == 7)

There are undoubtable algo's that can do this much faster, which im sure you can find by searching for "Lottery number generator algorythm" - the above process is very simplistic and can be knocked up quickly.
GeneralRe: Random Number Generator Pin
jarlath10-Mar-05 11:12
jarlath10-Mar-05 11:12 
QuestionHow to make a start up form using the coding. Pin
ADY0079-Mar-05 22:59
ADY0079-Mar-05 22:59 
AnswerRe: How to make a start up form using the coding. Pin
Dave Kreskowiak10-Mar-05 5:11
mveDave Kreskowiak10-Mar-05 5:11 
Generalabt c graphics Pin
Anonymous9-Mar-05 19:41
Anonymous9-Mar-05 19:41 
GeneralRe: abt c graphics Pin
Dave Kreskowiak10-Mar-05 5:08
mveDave Kreskowiak10-Mar-05 5:08 
GeneralDatabase in Sql Server Pin
eshban2849-Mar-05 19:25
eshban2849-Mar-05 19:25 
GeneralRe: Database in Sql Server Pin
Dave Kreskowiak10-Mar-05 5:05
mveDave Kreskowiak10-Mar-05 5:05 
GeneralTransparent TextBox in VB6 Pin
loane9-Mar-05 19:20
loane9-Mar-05 19:20 
GeneralRe: Transparent TextBox in VB6 Pin
Dave Kreskowiak10-Mar-05 4:22
mveDave Kreskowiak10-Mar-05 4:22 
GeneralForm in Vb.net Pin
eshban2849-Mar-05 19:07
eshban2849-Mar-05 19:07 
GeneralRe: Form in Vb.net Pin
Anonymous9-Mar-05 19:14
Anonymous9-Mar-05 19:14 
QuestionInserting into a collection possible? Pin
sam@twmi.rr.com9-Mar-05 16:31
sam@twmi.rr.com9-Mar-05 16:31 
AnswerRe: Inserting into a collection possible? Pin
Dave Kreskowiak10-Mar-05 4:15
mveDave Kreskowiak10-Mar-05 4:15 
GeneralRe: Inserting into a collection possible? Pin
sam@twmi.rr.com10-Mar-05 11:46
sam@twmi.rr.com10-Mar-05 11:46 
GeneralRe: Inserting into a collection possible? Pin
Dave Kreskowiak10-Mar-05 12:04
mveDave Kreskowiak10-Mar-05 12:04 
Generaldeployment of .net application Pin
Anonymous19809-Mar-05 16:28
sussAnonymous19809-Mar-05 16:28 
GeneralRe: deployment of .net application Pin
Dave Kreskowiak10-Mar-05 4:03
mveDave Kreskowiak10-Mar-05 4:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.