Computer Science Canada

I need help on my vb project on deal orr no deal

Author:  blizzard4800 [ 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.

Author:  Raknarg [ 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.

Author:  blizzard4800 [ 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?

Author:  Raknarg [ 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.

Author:  DanShadow [ 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 Wink]
What is the result of each interaction with the banker? (event result[s])

Author:  programmer1337 [ 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 Wink


: