ok so i wanted to make a number randomiser like so:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
srand((unsigned)time(0));
int random_integer;
for(int index=0; index<20; index++){
random_integer = (rand()%60)+1;
MessageBox(NULL, "Random Number: ", "Bingo",MB_OK | MB_ICONINFORMATION);
Sleep(2000);
}
return 0;
}
I want to put the randon_integer result into the message box in front of "Random Number: "
can anyone help me on this ? thanks