Now, our program will generate a random number, this is done with the rand() % x + n function, where x = highest integer and n = lowest integer that the random value is selected from. The program then uses the number generated by random to output one of three messages in response to you saying "hi", and asking"how are you"!
That took a while to type out, all those Disc->Items->Addrange(...); values, didn't it? Let's make it a little easier on ourselves! Type in the code below before the button1_Click function: