Author |
Message |
blizzard4800
|
Posted: Thu Jun 09, 2011 8:47 pm Post subject: I need help on my vb project on deal orr no deal |
|
|
My project is not working I dont know how to asing random values to my buttons and i also dont know how to make the banker come as well.
Description: |
this is my project so far |
|
Download |
Filename: |
the11last.zip |
Filesize: |
1.03 MB |
Downloaded: |
683 Time(s) |
Description: |
|
Download |
Filename: |
the11last.zip |
Filesize: |
1.03 MB |
Downloaded: |
518 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Raknarg
|
Posted: Thu Jun 09, 2011 9:07 pm Post subject: RE:I need help on my vb project on deal orr no deal |
|
|
There's a better way to do random functions, but this is the way I remember from class:
VisualBASIC: |
num = Int(Rnd() * (highest number)) + (lowest number)
|
The only issue with that is that it will produce the same order of random numbers each time.
|
|
|
|
|
|
blizzard4800
|
Posted: Fri Jun 10, 2011 7:38 pm Post subject: RE:I need help on my vb project on deal orr no deal |
|
|
where am I supposed to put the code?
|
|
|
|
|
|
Raknarg
|
Posted: Fri Jun 10, 2011 9:22 pm Post subject: RE:I need help on my vb project on deal orr no deal |
|
|
You said you didn't know how to assaign random values. I'm assuming you mean you didn't know the syntax for it. I'm not sure where you'd put that, I'm just telling you something you can use.
|
|
|
|
|
|
DanShadow
|
Posted: Sat Jun 11, 2011 2:12 am Post subject: RE:I need help on my vb project on deal orr no deal |
|
|
I don't have time to go through your code, sorry.
Ask yourself, under what circumstances does the banker call? (event trigger)
What does the banker do? (event action)
How can you interact with the banker? [deal, or no deal ]
What is the result of each interaction with the banker? (event result[s])
|
|
|
|
|
|
programmer1337
|
Posted: Sat Dec 10, 2011 8:51 pm Post subject: Re: I need help on my vb project on deal orr no deal |
|
|
to make them not produce the same random numbers just do Randomize() at the beginning of your code
|
|
|
|
|
|
|