Randomization

Titans_rule_02

New member
Joined
Aug 28, 2002
Messages
4
I have the basic concept of randomization down. I have 2 write a program that the user picks a number from 1 to 10. Based on how close the guess is, a diffrent message box is 2 appear.

How do I set up the diffrent message boxs?

How can i use the RND function w/ it?

Thanks
 
You can use the MessageBox.Show() to set up message boxes.
You can set these inside of If blocks. System.Windows.Forms required for this.

As for the rand function, Id declare a random generator and get random numbers from there.
Rg = new Random
N = Rg.Next(1, 10)
 
Back
Top